Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

When pull request is created (for-pull-request?)


Currently, we have our system setup for Bamboo branch creation (for-new-branch) when a branch is created in Bitbucket.  We would prefer to have Bamboo plan branch creation when the Pull Request is created but I want to be sure of the impact of changing it.  

A) Is the "for-pull-request" setting correct in the YAML for "When pull request is created"?
B) Will the mainline branch (i.e. master) still auto-build when the PR is merged? 

Any input would be appreciated...

1 answer

1 accepted

1 vote
Answer accepted

a) yes,

b) yes, if you have trigger to build master branch on repository change

Thank you for the reply Alexey. Our Bitbucket is setup essentially as a mono-repo.  The "master" branch is one version, then we have branches that represent other versions and releases off those versions. What we wish to have happen are the following steps. 

1) A developer creates a branch in Bitbucket off a mainline branch.
2) No builds automatically start in Bamboo (i.e. for-pull-request).
3) The developer can make multiple pushes to the remote branch without it triggering a build.
4) Merge is not allowed until at least one clean build is finished (currently configured this way)
5) The developer creates a PR and a build is triggered on the remote branch.
6) When the build finishes clean, the Developer merges into the mainline branch (may or may not be 'master', it could be any of our mainline branches.
7) When the merge occurs to the mainline branch, a build is triggered.

Currently, we are set up with linked repositories and the Bamboo trigger is a default "Bitbucket Server repository triggered"

Hey Alexey, I have it figured out and configured how I need it.  Thank you again for your assistance. 

Like Alexey Chystoprudov likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

51 views 0 3
Read article

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