Bamboo github configuration using ssh

I've tried many different configurations with the goal of configuring a GitHub account to use ssh authentication in Bamboo version 5.5.1. For the repository host I'm using "Git" instead of "GitHub", since the GitHub option requires a username and password.

For the repository URL this seems correct: ssh://git@github.com:path/to/project.git

The Authentication Type is set to "SSH private key" and I uploaded the private key to use. The build fails though, with the error "(java.lang.IllegalArgumentException : Unknown RepositoryDefinition 393240)". I've confirmed on the host that cloning the repo over ssh works, and I'm out of ideas on how to correctly configure this repository URL after doing many variations of the patterns at https://confluence.atlassian.com/display/BAMBOO/Git

Any help is much appreciated!

1 answer

1 accepted

This widget could not be displayed.

Hi All,

I believe the github SSH address looks something like this:

git@github.com:toolbelt/test.git

Could you edit your URL to remove the "ssh://" and attempt to process the build again? Please let me know the resuls and we'll go from there.

Thanks!

Turner

Yes that was the pattern I started with and it wasn't working initially. I changed back to it last week and for whatever reason it has started working today, so I can confirm it works for GitHub. Thank you for the feedback.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

269 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you