wernight commented on Bug JENKINS-16823

I saw the plugin uses ws.deleteContents() in PreBuildCleanup (I did a pre-build clean-up) which should be equivalent to:

new FilePath(new File('D:\\Jenkins\\workspace\\test')).deleteContents();

I'm not sure why this one doesn't use deleteRecursive() by default like the post-build clean-up. Running that command in Groovy throws a java.io.IOException which it should. It seems that the catching of the exception doesn't actually print anything in the log:

} catch (IOException  e) {
	Logger.getLogger(PreBuildCleanup.class.getName()).log(Level.SEVERE, null, e);
	e.printStackTrace();
} ...

Possibly it should throw a AbortException and log properly the error.

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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to