Fix JENKINS-17761: configurable based on build status

Added options to make ws-cleanup run/not run on any given status, not just on success.

![image](https://f.cloud.github.com/assets/1687436/456320/fa4c0050-b367-11e2-948e-b97f0e8ca6ab.png)