It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add a BitBucket deployment key to Bamboo elastic agent?

I created an Elastic Bamboo agent that was linked to one of our repositories in BitBucket. Building code in this repository requires installing dependencies, some of which are our repos in BitBucket. I'm not able to install these dependencies as I get a public-key error during the install. I'm trying to add a Bitbucket deploy key to all my agents such that they can access our repos in Bitbucket during a dependency installation. I have not found any documentation of where to add such a key in the agent.

1 answer

0 votes

If it possible you can add required repos to your plan and provide private key for these repos in Bamboo UI.

Where do I add such a key? Is it just added as a capability to an agent (under "Agent Capabilities")? I'm surprised no one else has run into this issue before..

That suggestion did not work for me. I also added my private key with a passphrase in the 'Shared Credentials' settings in the Bamboo administration section. I would have expected the remote agent to automatically pick up those credentials while getting the dependent repositories from bitbucket. I waited long enough for the cache to clear up. But, no luck there too.

I am using a hosted bamboo instance that is set up to run builds on the elastic agent. I am trying to set up a build plan with a nodejs repository in Bamboo, that fetches Bitbucket repositories as dependencies during npm install. 

Any helpful insight is much appreciated.


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

116 views 0 10
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