[英]how to trigger jenkins downstream job irrespective upstream job status
Have configured parameter build plugin, to check for build status worst=failure and best=success then execute shell but its not triggering downstream job (it triggers only if upstream is success).已配置参数构建插件,以检查构建状态最差=失败和最佳=成功,然后执行 shell 但不触发下游作业(仅在上游成功时才触发)。
Could you plz suggest what is the best way to trigger jenkins downstream job irrespective upstream job status.无论上游作业状态如何,您能否建议触发 jenkins 下游作业的最佳方法是什么。
Edit: I think the solution is to not have your upstream job failed in the first place, you can still handle failed downstream jobs with the help of ie env.编辑:我认为解决方案是首先不要让您的上游作业失败,您仍然可以在 ie env 的帮助下处理失败的下游作业。 variables or other means.变量或其他方式。
More information on the exact layout of your job would be helpful, however you can easily define how the result of your downstream job affects the upstream job.有关作业确切布局的更多信息会有所帮助,但您可以轻松定义下游作业的结果如何影响上游作业。
Handy when you have one wrapper job that triggers multiple downstream jobs and to ie aggregates some results, you can easily specify how the result of a downstream job affects the wrapper job.当您有一个包装器作业触发多个下游作业并聚合一些结果时,您可以方便地指定下游作业的结果如何影响包装器作业。
You just need to check the Block until the triggered projects finish their builds to have this option show up.您只需要检查Block,直到触发的项目完成其构建以显示此选项。
The aviable options are explained as follows:可用的选项解释如下:
This is for chaining jobs to run after another, allowing you to specify the run condition这是用于链接作业依次运行,允许您指定运行条件
在此处输入图像描述您可以选择选项(在其他项目构建之后构建)。在下面您有三个选项。您可以选择任何您想要的选项。只是您要求的最后一个选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.