What is the best approach to block or fail a Jenkins downstream job if any of its upstream jobs have failed or are unstable?
At the moment i have got the "Block build when upstream project is building" option ticked and that's working fine as my downstream job is waiting all the upstream job to finish building. However i don't want to build the job if any of the upstream failed or is unstable.
Thanks
When you make a job dependent on prior jobs, the trigger is visible both in the triggering job at the bottom and the triggered job at the top. If you look at the triggering job at the bottom, there are options to decide if the job is triggered only on success or regardless of the outcome of the job.
Make sure the setting in the Build Other Projects
setting is set to Trigger only if build succeeds
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With