詹金斯(Jenkins):上游中断时如何停止下游项目

编程入门 行业动态 更新时间:2024-10-08 06:19:26
本文介绍了詹金斯(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):上游中断时如何停止下游项目

本文发布于:2023-11-24 12:01:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625122.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:下游   金斯   项目   Jenkins

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!