How to Manage Concurrent Pipeline Executions for the same PR?

Adi Sasson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 24, 2024

 

Hello Bitbucket Team,

I am facing challenges with managing pipeline executions triggered by PRs across different repositories. I have two main concerns:

  1. How can I automatically cancel a running pipeline associated with a PR when a new commit triggers another pipeline for the same PR?
  2. How can I ensure that canceling a pipeline that triggered another pipeline (using the atlassian/trigger-pipeline pipe) also cancels the dependent pipeline in the other repository?

I need a way to link these pipeline lifecycles to improve efficiency and resource management. Is there a feature or method within Bitbucket that supports these requirements, or are there plans to introduce such functionality?

Thank you for your assistance.

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 26, 2024

Hello @Adi Sasson ,

and welcome to the Community!

Bitbucket Pipelines does not natively support automatically canceling a running pipeline when a new commit triggers another pipeline for the same PR. I went ahead and created a feature request for this scenario:

As for canceling dependent pipelines that were triggered with atlassian/trigger-pipeline, Bitbucket does not automatically link the lifecycle of these pipelines, as such, canceling the initiating pipeline does not cancel the triggered pipeline. I've also raised a feature for this request : 

I would suggest you to add your vote in those features, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind.

Thank you, @Adi Sasson !

Patrik S

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events