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

Your Points Tracker
  • 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
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?
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

Bamboo Specs BitbucketServerRepository and SSH Keys

I'm trying to create a build plan using Bamboo Java Specs using the stored specs feature storing the specs in my Bitbucket Server repo (our Bitbucket Server and Bamboo instances are linked correctly). I have got Bamboo picking up the specs file but it fails with this exception:

com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException: Clone url or ssh key pair is not valid

My plan looks something like this:

new Plan(project(), "name", "key")
.planRepositories(new BitbucketServerRepository()
.oid(new BambooOid(BAMBOOOID))
.repositoryViewer(new BitbucketServerRepositoryViewer())
.server(new ApplicationLink()
.changeDetection(new VcsChangeDetection())

I initially just tried using the public key and private key from an existing build we created in the UI, but it was always a long-shot and didn't work. From reading this page on the API - - it seems like I need to specify these rather than letting Bamboo create its own.

So my question is, do I need to create a user in Bitbucket for Bamboo (using one of our Bitbucket licences) and then generate SSH keys on the Bamboo host as if it were a normal user and use these or am I missing something here?

1 answer

Update: I've managed to get the repo public SSH key (created by bamboo creating the linked repository), but I'm not sure where the Bamboo private key is

Update 2: created a private SSH key for the account running Bamboo on the box its hosted on. Put that into the spec file along with the public access key for the repo and still getting 

Clone url or ssh key pair is not valid

 Running out of ideas fast

Suggest an answer

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

Bamboo Data Center - Early Access Program

G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...

945 views 0 16
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