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 vote

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.

Thanks!

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
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,321 views 0 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