The Concourse 2018 Community Survey is here and we'd love your feedback!

Concourse

On this page:

on_abort step hook

Any step can have on_abort tacked onto it, whose value is a second step to execute only if the parent step aborts.

on_abort: step

The step to execute when the parent step aborts. If the attached step succeeds, the entire step is still aborted.

Examples

Cleanup on Abort

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