Granular abort on fail


Sometimes I am asked how to abort a release when a task fails. A property of a template is Abort on failure checkbox. This ensures that should a failure occur the release will be aborted. Done.

Well, not quite, sometimes you may not want this behaviour (e.g. a slack notification failing shouldn’t necessarily undo all good work done to date) . Enter the Failure handler.

For those tasks that you want to kill a release without hesitation (e.g. failing deployments, tests etc) you can add a line to your enabled Failure Handler

Just remember to update your template Run Automated Tasks as User property