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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

64 views 2 3
Join discussion

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