Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I run pipeline only after approving a pull request?

Mohamad Qaddura
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!
February 13, 2020

here is the snippet Capture.JPG

 

Now what I want to do is instead of blindly running the pipeline, wait until the pull request is approved. 

 

Quite alot of times after a PR is created, so many changes are required, and pipelines are running for no purpose. and best way to avoid that is only after the "merge" button is clicked.

current flow
Create PR -> Run Pipeline & Code Review -> Press Merge -> Merge

wanted flow

Create PR -> Code Review -> Press Merge -> Run Pipeline -> Merge 

 

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2020

Hello @Mohamad Qaddura,

Welcome to the Community!

Unfortunately, this is not currently possible in Bitbucket. The only work around I can think of is to run a pipeline manually for the source branch of the PR before you merge it. However, unlike pipelines for PRs, it won't automatically merge the destination branch into your working branch before it runs, so you'll need to configure that manually if you want to.

Please raise a feature request in our public issue tracker so that we know about your desired workflow. You'll be notified whenever that ticket is updated.

Cheers,
Daniil

JMDArts February 14, 2020

Merg it

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events