Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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 Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

213 views 0 4
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