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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,187
Community Members
 
Community Events
184
Community Groups

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

Atlassian Community Events