How to make a Jenkins job status as aborted

后端 未结 1 625
花落未央
花落未央 2021-02-12 23:35

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 t

相关标签:
1条回答
  • 2021-02-12 23:51

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

    0 讨论(0)
提交回复
热议问题