New pipeline scenario: Run on Cancel

New pipeline scenario: Run on Cancel

A unique feature of Buddy is that it wraps CI/CD features into a package that can be used by developers regardless of DevOps experience. With the service transitioned to the new modular frame almost in full, we are now ready to add new functionalities with no constraints to the UI. In other words: more good stuff at a higher pace, including this week's addition to pipeline action scenarios.

What you need to know

Until now, Buddy let you run actions on 5 scenarios:

  • On Run – triggered on every pipeline run
  • On Failure – whenever an action finishes as failed
  • On Back to Green – whenever an action which failed in the previous run finishes as successful
  • On Error Suppression – whenever an action with the error suppression flag finishes as failed
  • On Wait for Human – whenever an action which requires human interaction is run (e.g. Approve Run)

The newest scenario allows you to run actions whenever the pipeline is terminated:

Image loading...Pipeline scenario selection

Terminating pipelines

A pipeline can be terminated in two ways:

  1. Using the Cancel button:

Image loading...Canceling pipeline run

  1. Checking the option in the pipeline settings which terminates ongoing pipeline runs if another execution for the same Git reference is triggered:

Image loading...Pipeline settings with runtime options

Example use case

A possible and probably the most common use case for this scenario involves keeping the team informed in case a pipeline crucial to the delivery process is terminated. For example, if deployment to production requires a manual approval and one of senior developers terminates the run:

Image loading...Example: Terminated deployment

Adding a notification action to the On Cancel scenario ensures the proper team immediately gets the message:

Image loading...On Cancel section with Slack action

Warning
This feature has been developed based on the user's request. Let us know what integrations you need to take your automation game to the next level! If there’s a feature or integration you miss, talk to us on the live chat or drop us a line at support@buddy.works.
Jarek Dylewski

Jarek Dylewski

Customer Support

A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.

Sep 14th 2023
Share