Pipeline completion trigger for failed execution

Introduction
This article walks you through how you can trigger the execution after the pipeline execution failed.

Process
Option 1

  1. As you know whenever workflow fails in the pipeline it will roll back.

  2. So you can put your all the functionality of what would represent a workflow, in the rollback steps of an initial workflow which failed in the pipeline. As marked in the below image:

Option 2

  1. Setup up the dependent workflow you would want to run on failure.

  2. Make a manual trigger for it and select type as webhook and Payload Type* as Custom (Shown in Image Below):

    2(a)

    2(b)

  3. Then use the resulting manual trigger values (either as rest API or curl) and call it on rollback of the failed workflow, either as a shell script (as curl) or HTTP step as post.

Hope this article helps you out.

1 Like