Connect to Bitbucket repo on Bamboo build via composer

Hi,

I need ability to connect to our Bitbucket account on the bamboo build server that is fired up. Steps I have taken so far:

  1. Logged on to initial build server and created a public/private ssh encrypted key
  2. Created a 'shared credentials' on bamboo and added the private key to this
  3. Created a 'deployment key' on Bitbucket for the repo i want to connect to, in this deployment key i have put the public key that I generated on the initial server

This doesn't give me access, i'm pretty sure what i'm doing above is incorrect, any suggestions?

Kevin 

1 answer

Do you need to connect from the Bamboo Server itself from a build agent running a build plan?  Setting up SSH on the server will not automatically let an agent connect.  What are you trying to do exactly?

This answer may help you: how to run "git clone" in an inline script

 

We are running composer on our build server which installs a number of repo's from our private repositories.

The build server is an elastic agent and we have multiple ones, each time a build server is booted up its a brand new build server, so therefore there is no public/private key.

Therefore when we run composer to connect to our private repo there is no key to use in order to authenticate.

i want every build server we boot up to have access to our private repo via composer.

I thought using shared credentials was teh way forward for this but can't seem to get that.

Another way forward seems to be creating a EBS snapshot which has the private key on.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Dec 06, 2018 in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,664 views 22 17
View question

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