简体   繁体   English

无论上游作业状态如何,如何触发 jenkins 下游作业

[英]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.有关作业确切布局的更多信息会有所帮助,但您可以轻松定义下游作业的结果如何影响上游作业。

As a Build step作为构建步骤

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:可用的选项解释如下:

在此处输入图片说明

As a Post-build action作为构建后操作

This is for chaining jobs to run after another, allowing you to specify the run condition这是用于链接作业依次运行,允许您指定运行条件在此处输入图片说明

在此处输入图像描述您可以选择选项(在其他项目构建之后构建)。在下面您有三个选项。您可以选择任何您想要的选项。只是您要求的最后一个选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何根据上游作业状态码跳过下游 jenkins 作业 - How to skip downstream jenkins job based on upstream job status code Jenkins的上游和下游工作 - Upstream and DownStream Job on Jenkins Jenkins:基于多个上游作业触发单个下游作业 - Jenkins : Trigger Single Downstream job based on multiple upstream job 詹金斯:如何使上游作业触发对下游作业的文件系统轮询 - Jenkins: how to make an upstream job trigger the file system polling on a downstream job 詹金斯:触发下游工作 - Jenkins: trigger a downstream job 如何在 Jenkins MultiJob 中将下游作业的描述传递给上游作业 - How to pass Description of downstream job to upstream job in Jenkins MultiJob 如果詹金斯满足条件,如何触发下游作业 - How to trigger a downstream job if a condition is met in Jenkins 如何延迟触发 Jenkins 下游构建作业? - How to trigger Jenkins downstream build job with a delay? Jenkins-如何将参数从下游作业传递到其父上游? - Jenkins - How to pass parameters from a downstream job to its parent upstream? 如何在詹金斯中将参数作为环境变量从上游作业传递到下游作业? 无需对下游工作进行参数化 - How to pass parameter as environment variable from upstream job to downstream job in jenkins? without downstream jobs being parametrized
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM