Connect to Bitbucket repo on Bamboo build via composer


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?


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
Published 14 hours ago in Jira

How you can achieve compact and easy-to-maintain workflows in your JIRA( Server)

This approach requires you to have the JIRA administrative rights. The main aim of this article is to help you achieve an organized, easy-to-maintain workflows in your JIRA instance thereby, reducin...

140 views 0 0
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