JENKINS-15395 - Add checkbox to run script when build fails

Add checkbox to run script when build fails
https://issues.jenkins-ci.org/browse/JENKINS-15395