I have setup couple of workflows and I have 1 condition in second step if that fails I want to stop that CI build. Is there any command/script I can use to stop the build.
Currently I am using “run_if” to do that job. But I have to add that for all the following steps. Is there any single line command that I can use only in that step and it won’t proceed further.
Thanks in advance.
Hi @jahanvi_vyas,
There’s no command for that, but as a workaround you can use the API to abort the build, if that’s an option: http://devcenter.bitrise.io/api/v0.1/#post-appsapp-slugbuildsbuild-slugabort
P.S.: there’s an option to abort with success (abort_with_success
), which will still mark the build as aborted but will send a “Success” status to your git hosting service as the build’s status, as well as has a different design on the bitrise.io UI (not success / green though). If you want to disable the “build was aborted” emails you can also do that via the API, skip_notifications
parameter.
If you’d have any questions just let us know!
Happy Building!
Ohh, and if you’d want an actual command line solution, feel free to create a #feature-request ! We’re not against that, there was just no request / use case so far
Thanks for the quick reply viktorbenei! I will create feature-request.
2 Likes