bitbucket branch permission not working as it should

why my bitbucket branch permission in the exclusion list is not working as it should?

4 answers

0 vote

It's hard to say without more information. Perhaps you can specify what your branch permission configuration is and what you expect and what actually happens?

i set the branch configuration with this:

Optional: Add exemptions for any of the selected restrictions. Adding a user or group as an exemption means that it will not apply to them. This is not required; not adding any exemptions means the restriction will apply to everyone.

put the Atlassian (bamboo build machine) user id in the exclusion list for branch "develop"

I checked Prevent all changes, Prevent changes without a pull request, except by Atlassian userID. When bamboo do a release to staging, the Atlassian should automatically update all pom.xml files to the next development version and push the branch backup.

This will work if i remove the "develop" branch in the branch permission, however, once i put it back, it will failed and complain with this error:

'refs/heads/develop' is read-only.Branch refs/heads/develop can only be modified through pull requests.Check your branch permissions configuration with the project administrator.-

 

perhaps there maybe another hidden switch that need to activate? I could not figure it out this.

Thanks,

Andy

0 vote

When the push is working, without the branch restrictions, can you check if the commit is made by the same user id you are trying to exclude? You might have a different user id in the git config? 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,751 views 1 5
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