I don't see a push on success on the GateKeeper option of Plan Branching?


What I want to do seems pretty simple but at the same time for me seems really difficult to setup in Bamboo and Stash.

I created a Develop branch of my Master Branch in Stash, I created a build plan in Bamboo and  manually created a Plan branch for the develop branch. I want the develop branch to be auto merged with master upon successful builds of the develop branch. I enabled Branch merging on the Develop plan branch and choose Gatekeeper(Here is where I get lost).

The Checkout has the name of my build plan, the merge from has the name of develop branch(shouldn't this be master?) the checkbox by merge result is checked but the name is the name of my build plan? I guess I am confused what is the From and To on this screen. I also don't see a Push on Option at all which really confuses me.




2 answers

1 accepted

0 votes
Accepted answer

Hello Chad,

Thank you for your question.

Since you have integrated Bamboo and Stash through application links, there is no need to create a branch manually. Instead, you could have enabled Create plan branches for branches detected in the repository under "Plan configuration >> Branches >> Automatically manage branches" which would create the branch automatically once something was committed to that Branch (i.e.: develop) in Stash.

If you are planning on using Gatekeeper, you can simply go to your branch (i.e.: develop) in Bamboo, under "Branch details >> Merging", enable Branch merging enabled and select Gatekeeper. Please, set it up as per following:

Checkout: Auto Merge
Merge from: develop # your branch should be selected automatically
Build: Merge result
       [x] Auto Merge

The above should be enough to merge from sth to master. In case you continue on experiencing difficulties, I would kindly suggest you on raising a Support ticket. Before you do, please make sure of reproducing the issue you are experiencing as new entry logs will be generated and we will be able to investigate this issue further.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

I am still confused if I enable Create plan branches for branches detected in the repository and check Branch merging enabled than select gatekeeper and choose checkout of develop merge from current branch X auto merge back to develop, would I than have to modify the develop branch so that is the only branch that is auto merged back into Master?

I am also confused by what Stash says :

The integration branch used for development. Feature branches are merged back into this branch
The branch used for deploying releases. Typically, this branches from the development branch and changes are merged back into the development branch
Should I remove the Production branch on the branching model configuration screen in Stash or should I changed it from Default to develop since default would be master?

Hello Chad, Gatekeeper will merge whatever branch you have into your master branch. If you have changed your master branch to something else, this branch will be the master then. If you have enabled Branch merging enabled after having created the develop branch in Bamboo, then it is required to go your branches and enable the merging. For future branches, they will pick up the setting automatically. — Kind regards, Rafael P. Sperafico Atlassian Support

My master branch is still the default. Let me ask what I want to do in a different way I want all feature branches auto merged into the develop branch, the only branch I want auto merged into master is the develop branch. Is that not possible? Also how would release branches be handled? I am trying to use a GitFlow workflow for this repository.

I think I am wrong on how I was thinking GitFlow should work, I now think Development branch should never be merged into Master, only release branches should be merged into master. Is that correct?

Hello Chad, To better answer to your question, I would kindly suggest you to refer to https://www.atlassian.com/git/tutorials/comparing-workflows for further information. — Kind regards, Rafael P. Sperafico Atlassian Support

I have already read that several times.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

188 views 4 1
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