本文介绍了詹金斯(Jenkins):上游中断时如何停止下游项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Jenkins中有一个上游项目,该项目使用在其他项目上触发/调用"插件依次调用某些下游项目.
I have an upstream project in Jenkins which calls in sequence some downstream projects with the "Trigger/call builds on other projects" plugin.
当我中止上游项目时,如何自动中止任何下游项目的构建?
How can I automatically abort a build of any downstream project when I perform the aborting of the upstream project?
如果上游中止,则下游仍在运行,我希望有其他行为.
If the upstream is aborted, the downstream is still running and I want a different behaviour.
谢谢.
推荐答案您可以查看:
wiki.jenkins.io /plugins/servlet/mobile?contentId = 36603009#content/view/36603009
可以通过向构建的URL端点发送HTTP POST请求来停止管道作业.
Pipeline jobs can by stopped by sending an HTTP POST request to URL endpoints of a build.
BUILD ID URL/stop - aborts a Pipeline. BUILD ID URL/term - forcibly terminates a build (should only be used if stop does not work. BUILD ID URL/kill - hard kill a pipeline. This is the most destructive way to stop a pipeline and should only be used as a last resort.最后一个选项非常有效
更多推荐
詹金斯(Jenkins):上游中断时如何停止下游项目
发布评论