jenkinsci/ws-cleanup-plugin — pull request #3 by fwiegerinck (2012-07-15 18:43:46+00:00)
Title: Added feature allowing to skip cleanup when build fails

Sometime the workspace needs to be preserved when a build fails. You want to debug or to take some other action which is impossible without the workspace. In my case I need to rollback a maven release initiated by the m2release plugin.

You can configure a project to skip all post-build actions but this also skips all other post-build actions including email notification send by a plugin (instead of using central mail notification).

Only pull the 'Cleanup.java' and 'config.jelly'. The pom.xml is modified to match my local environment.