Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm implementing a deployment/rollback procedure using Jenkins 1.430. I would like to configure the deployment and the rollback steps as 2 separate jobs so as to be triggered independently if needed. However I would also like the rollback to be triggered automatically when the deployment fails.

When I go to the Post-build Actions configuration section of the deployment job, I can choose to Build other projects. If I check that setting I get 3 options:
-Trigger only if build succeeds
-Trigger even if the build is unstable
-Trigger even if the build fails

What I'm missing is the Trigger only if build fails option.

Do you know how this can be achieved?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The Parameterized Trigger Plugin allows you to run another build of any project based upon the status of the just-completed build.enter image description here

share|improve this answer
    
I've also found this one: wiki.jenkins-ci.org/display/JENKINS/Downstream-Ext+Plugin –  user64204 Sep 26 '11 at 11:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.