Bamboo Git authentication

I am setting up the Atlassian suite on a Ubuntu Linux server, i have installed Git on the local server and also Stash and Bamboo but i am having problem with authentication when trying to run a plan.

I have created a Git repository on the local server using Stash, and i then set the repository URL in the Bamboo plan to 'http://simon@192.168.64.130:7990/scm/DRAG/drag.git' and try to run the plan but i get an authentication failure if i set authentication type to 'none' or 'username/password'.

I was expecting i could authenticate with my Stash username and password but this doesnt work - could someone tell me how i can set 'username/password' authentication for Git so the Bamboo authentication will work?

Any hints or tips would be much appreciated - thanks

2 answers

1 accepted

I finally worked out how to run the plan using Bamboo - I removed the 'simon@' bit from the repository URL which i copied from Stash - e.g. the correct URL for the repository was ' http://192.168.64.130:7990/scm/DRAG/dwh.git'

I then set authentication type to 'username/password' and configured the username and password to the values which were created with Stash and finally i was able to successfully run the plan using Bamboo.

0 vote

Which version of Bamboo is it? If it's not 4.3, upgrade and try 'none' again.

I have installed Bamboo 4.3.1 and when i set the authentication type to 'none' for my source repository i get the following error message when trying to run the plan -

Dragons Project - Dragons PlanDRAG-DRAG-12 : Errors getting changes for DRAG-DRAG-12

(java.lang.RuntimeException : com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote http://simon@192.168.64.130:7990/scm/DRAG/dwh.git failed with code 128. Working directory was [.]., stderr: [fatal: could not read Password for 'http://simon@192.168.64.130:7990': No such device or address])
The source repository has Web Repository set to 'Stash' and Stash URL is 'http://192.168.64.130:7990/stash' - do you have any instructions on how the password needs to be set? thanks

If your repository requires a password for authentication, you can't set the auth to none. Set it to password, what error are you getting then?

Thanks for trying to help with this, i set the source repository in Bamboo to use 'username/password' authentication and set the username and password to the admin user that i configured when installing Stash - i have not tried to set up any separate users in Git or Stash yet. Here is the error message i get with authentication type set to 'username/password' -

Dragons Project - Dragons PlanDRAG-DRAG-14 : Errors getting changes for DRAG-DRAG-14

(java.lang.RuntimeException : com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote http://simon@192.168.64.130:7990/scm/DRAG/dwh.git failed with code 128. Working directory was [.]., stderr: [fatal: could not read Password for 'http://simon@192.168.64.130:7990': No such device or address])
(19 Nov 2012, 2:09:45 PM)
Do you have any instructions for how i should set up a user in Git / Stash?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,791 views 0 6
Read article

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