HI,
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.
Thanks!
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 :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.