Bamboo Git authentication

Deleted user November 16, 2012

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

0 votes
Answer accepted
Deleted user November 20, 2012

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 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 17, 2012

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

Deleted user November 17, 2012

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
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 18, 2012

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?

Deleted user November 18, 2012

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

Atlassian Community Events