Marking upstream Jenkins/Hudson as failed if downstream job fails

Quintin Par picture Quintin Par · Jun 19, 2011 · Viewed 10.5k times · Source

I am using Parameterized Trigger Plugin to trigger a downstream build.

How do I specify that my upstream job should fail if the downstream fails? The upstream job is actually is dummy job with parameters being passed to the downstream.

Answer

Andrew picture Andrew · Feb 13, 2013

Make sure you are using the correct step to execute your downstream jobs; I discovered that since I was executing mine as a "post build step", I didn't have the "Block until the triggered projects finish their builds" option. Changing that to "build task" as opposed to a "post build task", allowed me to find the options you are looking for within the Parameterized Trigger Plugin.

enter image description here