I have problem with Bamboo Specs for Bamboo 6.3.1.
I want to set own Private/Public key for BitbucketServerRepository like
project_key = _project_key;
repository_slug = _repository_slug;
branch_name = branch;
ApplicationLink link = new ApplicationLink()
this.sshCloneUrl("ssh://<server>" + project_key + "/" + repository_slug + ".git");
this.name(Main.BITBUCKET_BAMBOO_NAME + project_key + repository_slug + branch);
(Replace <server> with valid server address)
Everything publish without problems, but Bamboo generate NEW keys in my Bitbucket server even if I have specified private/public pair.
Thans for any advise :),
If you want to make use of your own SSH key, then you should be looking at https://docs.atlassian.com/bamboo-specs-docs/6.3.1/specs-java.html#git, creating a "new GitRepository()", however, since you are setting up a Bitbucket Server repository in Bamboo, you should let Bamboo manage the SSH keys on your behalf. This is the same behavior as when creating a Bitbucket Server repository from Bamboo's UI.
Could you please attempt on running the following instead (doing the replaces), letting us know how it goes.
Plan plan = new Plan(project, planName, planKey) .planRepositories(new BitbucketServerRepository() .name("my-bitbucket-repository") .server(bitbucketServerApplink) .projectKey("BBSPROJECT") .repositorySlug("my-repository-slug") .branch("master") .sshPrivateKey(sshPrivateKey) .sshPublicKey(sshPublicKey));
Extracted from Bitbucket Server Git repository - Authentication
Furthermore, it is recommended making use of Bitbucket Server as Repository Host over Git due to Benefits of integration
Thank you for your update.
A bug has been filed in our issue tracker (https://jira.atlassian.com/browse/BAM-20012 - Cannot set up custom SSH keys in Bamboo Java Specs) describing the issue you have reported.
Whilst the issue is not addressed, please continue on using Bitbucket Server as Repository Host instead of Git due to Benefits of integration and let Bamboo manage the SSH keys for you.
Thank you for your update.
There was no need to upgrade Bamboo 6.6.1 as the bug raised (https://jira.atlassian.com/browse/BAM-20012 - Cannot set up custom SSH keys in Bamboo Java Specs) already mention the feature is not working as described in documentation, but thank you for the effort.
If you visit the link mentioned, you should find Fix Version/s: in it, in which describes in which version the bug will have its fix.
Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...