Bamboo and Stash - Pull requests and Build Status

Hi,

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?

Thanks

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,

Tom.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,584 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