Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Can Bamboo Server link to a BitBucket Cloud repository using SSH?

Is it possible to connect a bamboo server to a private repository hosted on Bitbucket Cloud using SSH?  I couldn't seem to find an option to do that using the admin interface but the document suggested it's possible.

https://confluence.atlassian.com/bamboo/bitbucket-cloud-289277000.html 

Step 5.3 under Configure a Bitbucket Source Repository

4 answers

Alexey, I just downloaded Bamboo version 6.0.3 build 60004, created a SSH Shared Credential, and when I then attempted to create a Linked Repository, the SSH shared credential is not available.

image.pngimage.png

I up your post here. Same problem in 6.1. No ssh Credential working with linked repository.

Atlassian support got this figured out for me (BSP-33950), too bad this isn't in any of the documention:

When setting up a Bitbucket Cloud linked repository, Bamboo first needs the username and password to retrieve the list of repositories from Bitbucket Cloud. After selecting the repository, users can then decide what type of authentication to use for the checkout.

SSH authentication is only used for Git checkouts, the username and password are still needed to authenticate and get the list of repositories. To eliminate the use of username and password, users have the option to create a Git type linked repository instead. In this repository type, users can define the clone URL manually and define the authentication to use. Since Bamboo does not need to retrieve the repository list, username and password can be eliminated this way.

I ran into another issue, potentially because we have 2 factor auth turned on: Failed to load data from Bitbucket. com.atlassian.bamboo.plugins.bitbucket.api.BitbucketApiException: HTTP 403 To make an API call, you need to use an app password.

So, you'll need to create an app password to use with bamboo.
  1. Go to http://bitbucket.org/account/user/<YOUR_USER>
  2. Click on "App passwords" on the section "Access Management"
  3. Create an app password, setting permissions as desired.
  4. Now you have a unique password specially for applications that won't expire.Next step of the process:
  5. Go to Bamboo, and create a new Bitbucket Cloud repository.
  6. Choose "Provide username and password".
  7. Provide your username and the password you just generated (app password).
  8. Set "Authentication Type" as "SSH Private key".
  9. Select "Use shared credentials".
  10. Chose your credential.
  11. Test the connection.

 

This is exactly what I ran into. It is weird that the Bitbucket Cloud link requires a username password while the documentation still allows SSH based authentication.

This is weird.

Like Intakhab Alam Siddiqui likes this

They say it works, but it really doesn't.

Jonathan Voss, can you please describe what doesn't work for you?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

186 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you