Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2019

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

Atlassian Community Events