It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I run pipeline only after approving a pull request? Edited

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

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 I'm New Here Feb 14, 2020

Merg it

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

Contest: Share your custom Bitbucket Pipe and win

Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...

1,042 views 4 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you