提交 ee5cba8f 编写于 作者: K kohsuke

added a system property to disable workspace clean up

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18963 71c3de6d-444a-0410-be80-ed276b4c234a
上级 07a17f1f
......@@ -62,6 +62,11 @@ public class WorkspaceCleanupThread extends AsyncPeriodicWork {
protected void execute(TaskListener listener) throws InterruptedException, IOException {
try {
if(disabled) {
LOGGER.fine("Disabled. Skipping execution");
return;
}
this.listener = listener;
Hudson h = Hudson.getInstance();
......@@ -165,4 +170,9 @@ public class WorkspaceCleanupThread extends AsyncPeriodicWork {
private static final long DAY = 1000*60*60*24;
private static final Logger LOGGER = Logger.getLogger(WorkspaceCleanupThread.class.getName());
/**
* Can be used to disable workspace clean up.
*/
public static boolean disabled = Boolean.getBoolean(WorkspaceCleanupThread.class.getName()+".disabled");
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册