Edit

Share via


onFailureHook definition

Used to run steps for rollback actions or clean-up.

onFailureHook:
  steps: [ task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp ] # A list of steps to run.
  pool: string | pool # Pool where post on failure steps will run.

Note

This definition is a supporting definition and is not intended for use directly in a pipeline. This article provides the YAML syntax for this supporting type, but does not show usage examples. For more information and examples for using this supporting type, see the following Definitions that reference this definition articles.

Definitions that reference this definition: onSuccessOrFailureHook

Properties

steps steps.
A list of steps to run.

pool pool.
Pool where post on failure steps will run.