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")
.sshPublicKey("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBe4QMq5G8Xqkfmg42zGBt1QVAujP8McC8Q0xRnUzFMo")

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