How to make a Jenkins job status as aborted

半城伤御伤魂 提交于 2020-01-01 04:04:12

问题


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?


回答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".



来源:https://stackoverflow.com/questions/8488541/how-to-make-a-jenkins-job-status-as-aborted

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!