如何使 Jenkins 作业状态为已中止
我正在运行一些批处理命令作为构建的预构建步骤。我想根据某些条件将构建状态设置为中止。
谁能告诉我詹金斯中“中止”的错误级别是多少?
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须安装“条件构建步骤插件”和“构建失败”插件。然后,您只需添加一个条件步骤,如果条件为真,您可以调用状态为“已中止”的失败构建步骤。
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".