Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I get the user and their group whilst running a build

Dave Grandon September 13, 2022

I am trying to restrict the ability of developers to build the master branch, they need to be able to build, compile and test their branch(es) but not build against master database

1 answer

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2022

Hello @Dave Grandon

You can work externally on Bamboo to restrict the merger of changes to the master/main branch by implementing a Pull Request and approval mechanism. That way your developers will be able to push their changes to their own branches and only merge to master when a Pull request is approved and merged.

Another strategy you can adopt is to modify Bamboo in a way that the repository attached to a Plan does not have "master/main" as the default Branch. For that, you need to modify the repository settings and declare another branch as the default.

You can then modify the Plan permissions to allow developers to only run builds and not edit the Plan.

If you want to have full control over the changes to the Plan structure, you can consider migrating the plan to Bamboo Specs (configuration as code).

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events