I have configured branch permission for my repo, which will prevent pushes to master branch, meanwhile I added some service users like the Bitbucket user it uses to merge changes into master...
The issue is:
when bamboo completed tests on master branch which has merged in some auto upgrades in bamboo server, it will try to push the updated master branch back to repo's master branch, but it is blocked by branch permission.
My question is:
What is the user name the bamboo is using to push back to master branch, as long as I get the name, I can add it to exclusion list, but I can't find it. Anyone can show me how to get this Please?
In Bitbucket Server, it is possible to configure Bamboo as an exception to the branch permission rules.
This can be done using the Access Key that Bamboo adds to Bitbucket Server when a repository or a branch is added to a plan.
For example, if you want want Bamboo to be able to write to the master branch directly while all other users can only do that via a pull request, you can define the Branch Permissions in this way in Bitbucket Server:
The value in the "except by" field corresponds to the Access Key that you can find in the repository settings in Bitbucket Server:
This feature is available since Bitbucket Server 4.14.0 as announced in the Add access keys to branch permissions blog post.
Caterina - Atlassian Support
You cannot whitelist this event, the checkbox mentioned in the merge option is what allows Bamboo to communicate with Bitbucket server and for the push to be made. Alternatively, you can run a Script task to do the merge, providing the user who is going to to the merge.
Without unchecking the [ ] push checkbox in Bamboo, no. As already mentioned, this event is internal to both application and by checking the push checkbox you are allowing Bamboo to push against Bitbucket and this is the only moment Bamboo will push against your repositories as a security measure.
So if you want to prevent push from happening, uncheck the [ ] push checkbox and create a script task to communicate with your repository and do the merge.
Please, refer to the following for further information:
the weird thing is that:
in the past the bamboo pusher in Bitbucket will be shown as "access key user ..."
but after a reinstallation, the pusher name changed to "Bitbucket student account", which is just one of our normal user account.
We do not know how it was changed to this account, by the way, the bamboo branch updater is also using this account to update our review branches.
SO, I really need to know how and where the user bamboo is using to push is configured, there must be somewhere right?
I am using Atlassian Bamboo version 22.214.171.124 build 51314 and Atlassian Bitbucket v4.9.1. Unfortunately, exempting "Access Keys" in Branch Permissions doesn't work in the Bitbucket v4.9.1. And the moment I restrict permissions to my branch for users, Bamboo cant merge to the branch - reports that the branch is read-only. Please let me know if there is way to fix this.
Also , it would be great if you can re-attach the image as it seems missing now.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...
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!
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