Marking upstream Jenkins/Hudson as failed if downstream job fails

后端 未结 4 1362
-上瘾入骨i
-上瘾入骨i 2021-02-18 22:46

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

4条回答
  •  故里飘歌
    2021-02-18 23:05

    Have a look at the following response: Fail hudson build with groovy script. You can get access to the upstream job and fail its build BUT... be careful with the fact that Hudson/Jenkins post-build actions right now do not allow to specify any ordering: if your groovy script is specified besides other post-build actions, and those actions affect the result of the build (i.e.: parsing of test results), then you won't be able to update the status of the upstream job if Jenkins decides to run them after your groovy script.

提交回复
热议问题