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?
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 aBUILD_STATUS
env var?