Bamboo and Stash - Pull requests and Build Status


We are trying to integrate bamboo with stash, but the workflow between stash and bamboo is currently not crystal clear.

First, build status seems to not appear in stash, so I'm not sure if there is a setup problem somewhere (applications links seems to be correctly setup, as well as notifications from bamboo).

But the first thing we are not sure is that bamboo seems to be able to automatically trigger a build after commits have been done to a branch. So questions are:

  • Does it mean that Pull Requests should be merged before trying to build?
  • But if a merge is breaking the build, I would not prefer this commits to be actually merged. How are we supposed to proceed? Do we have to create a special branch for integration like master_integration, merge on this branch, build on this branch, if build is broken, wait for an update, re-run the build, build ok, automatically merge from master_integration to master. Is this the correct workflow?
  • If we want to automatically build a branch before merging, how are we supposed to proceed?


2 answers

1 accepted

Hi Alexandre,

Assuming you have branch builds setup and the build status is being published to Stash you should be able to stop pull requests being merged unless they have a green build.

There is a setting on the Pull Requests tab in repository settings to control the merge behaviour.

Hope that helps,


Update: Sorry, I completely forgot that I can configure bamboo branches and this is where we can build branches before merging them. So it seems to like question 1 and 3 have a solution.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

131 views 0 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you