1.11.9.7 on_abort
Step Hook
A hook step to execute if the build is aborted and the parent step was running and then terminated.
The following will perform the cleanup
task only if the build is aborted while the unit
task was running:
plan:
- get: foo
- task: unit
file: foo/unit.yml
on_abort:
task: cleanup
file: foo/cleanup.yml