buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

Allow calling step only if build fails #301

Open joshma opened 6 years ago

joshma commented 6 years ago

We'd like to notify the creator of the build (in our case, via Slack) only if the build fails. Right now, we can continue_on_failure: true to reach a step, but we can't easily determine if the build is failed at that step. It might be possible to read the status from the REST API at that point, but it'd be nice if this were more integrated.

My proposal would be a way to include an on_failure stage to the pipeline, sort of like a "catch" block. Alternatively, continue_on_failure: true could maybe be combined with a BUILD_STATUS env var?