We are currently running Bitbucket Server along with Bamboo. I am looking to have Bamboo upon a successful deployment, perform a commit to the release branch in the repository. We use Bitbucket's Branch permissions to prevent rewriting history and deletion, and changes only through Pull Request. You can add a user as an exception, but I don't see the user Bamboo uses (Atlassian Bamboo) as an option to select as an exception user.
Bamboo uses Crowd for authentication which connects to AD to get our users that can authenticate.
The setup in the Bamboo Plan is using the Repository commit task to perform the commit and push the changes to Bitbucket. Bamboo and Bitbucket are linked, via the standard Atlassian method and the repository is a Linked Repository in Bamboo.
What are your best ideas on how to either get the Bamboo user to be added as an exception? Or a better way to go about performing the commit? Or any other solution that I'm not seeing.
The desired feature is already supported and built into Bitbucket and Bamboo. Bamboo upon linking to a Bitbucket repository, automatically creates and adds an access key into the repository in Bitbucket. In viewing the Linked Repository I saw the key and knew it was then existing in the matching Bitbucket repo.
Upon doing some web searching, I found this article, which shows a key being added directly to the branch permissions.
I had numerous times typed bamboo into the field, but the key had never shown up. When Bamboo creates keys, it gives them the name of Bamboo's URL. The filtering did not work to match anything in the URL other than the start of the name, with is http.
Knowing this, I was able to add the access key Bamboo created to the repository, and can grant only Bamboo access to make changes to a release branch without a Pull Request.
Awesome - thanks for sharing your solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.