如何使 Jenkins 作业状态为已中止

发布于 2024-12-20 20:57:27 字数 80 浏览 2 评论 0原文

我正在运行一些批处理命令作为构建的预构建步骤。我想根据某些条件将构建状态设置为中止。

谁能告诉我詹金斯中“中止”的错误级别是多少?

I am running some batch commands as a prebuild step for a build. I want to make the status of the build as aborted based on some conditions.

Can anyone tell me what is the errorlevel for 'aborted' in Jenkins?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

坦然微笑 2024-12-27 20:57:27

您必须安装“条件构建步骤插件”和“构建失败”插件。然后,您只需添加一个条件步骤,如果条件为真,您可以调用状态为“已中止”的失败构建步骤。

You have to install the "Conditional build step plugin" and the "Fail the build" plugins. Then you simply add a conditional step, and if the condition is true, you can call the fail build step with state "aborted".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文