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

Bamboo Java Specs, cannot set custom SSH keys on Bitbucket repo

I am using Bamboo integrated with Bitbucket. Repository is a linked repository. I am trying to setup Java Specs to create a build plan. This is intended to be a RSS (Repository Stored Specs).

Bamboo successfully scans the repo and picks up the Java Specs. When it tries to publish the plan, it fails

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

This is the code I use:

.planRepositories(new BitbucketServerRepository()
.name("Main Git")
.repositoryViewer(new BitbucketServerRepositoryViewer())
.server(new ApplicationLink()
.name("OurCo - Bitbucket")
.id("561d1ac7-2c1b-3219-b934-d0cd915ba1b7"))
.projectKey("TNDT")
.repositorySlug("tndt---bambospecs-test")
.sshPublicKey("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBe4QMq5G8Xqkfmg42zGBt1QVAujP8McC8Q0xRnUzFMo tndt-ed25519@bamboo.talpa.network")
.sshPrivateKey("BAMSCRT@0@0@z+hVezZ+LWiHv2xU6yvMivCBT6W3wp21zPS/qB5hHNCT/I5otuCzdNBvKEeleypcbOPojBIKjgQoBOn9O0PphWqVc4EVI1TpqhEW5IxFSw3iPmMlIdaEyL5DDS2JPThRT0EdRmN1655z6sn4aQo8dQy8OFcbyC2nFdNmPh0DmxJUSPHaTeUnwwfo1ocMh4JocyZmj/Yi+ch387F1B7GXHqGP+XeQjgMYFN9nS1NJa5PBnph3Z4GSuBhBMeDMGtNDzeixSvKELoKI8NUSNgkCxQFG8KCldOFwGylVzElR9x/pkKaPpOGrL35Me9+KRHEmUFpc7qFu/9kkib7axuFpH02TRNT53r2tIoqsEmy4gn74RqootJVmzP2hYFyWvt4cUYsP92rKYcDcfG3Fo2oAO9xYPXH+L+xEXpX6V03S0KA6hBYBrn/8f/5NkM+aYXhZ43b5kAzjfTW1CCLMzJiHKBh5x1zlLUGPezVh+uyLuJQDoOEiIZF2/gnihKFbSA8MhVzjp+m0aCLSnVac3eTeVQnDMWU7k5+SSIwo4hVRvkZuE9iwH+oXM4evDAifajkR")
.sshCloneUrl("ssh://git@<SERVER>/tndt/tndt---bambospecs-test.git")

Omitting SSH keys and running the plan from my machine works OK.

I have tried RSA2, ED25519 and other key types. Nothing works. Any suggestions on what I might be doing wrong? Am I encrypting the private key correctly?

0 answers

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 ...

223 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