|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

We have modified Jenkins source code for clean a project build workspace.
AbstartProject.performDelete()
// note start. it only delete master workspace?
/*
FilePath ws = getWorkspace();
if(ws!=null) { Node on = getLastBuiltOn(); getScm().processWorkspaceBeforeDeletion(this, ws, on); if(on!=null) on.getFileSystemProvisioner().discardWorkspace(this,ws); }
*/
// note end
// modify start
Map<Node, FilePath> nfMap = getAllBuiltOn();
for (Map.Entry<Node, FilePath> entry : nfMap.entrySet()) { Node n = entry.getKey(); FilePath fp = entry.getValue(); getScm().processWorkspaceBeforeDeletion(this, fp, n); if (n != null) n.getFileSystemProvisioner().discardWorkspace(this, fp); }
// modify end
getAllBuiltOn(); is impl in Job.