-
Improvement
-
Resolution: Duplicate
-
Major
-
None
I have jenkins installed on a Ubuntu machine. I have a git repo hosted on a different Ubuntu server that I usually access via ssh. I created a new build project and I am just trying to get the git fetch working. I defined the URL correctly and created a new set of credentials that are a username and password. I am getting the error in the attached file. I don't know how else to debug this problem. I ran the following command in a terminal on my jenkins server (running as the jenkins user) and it prompted me for my password. When I entered the password, it printed nothing to the standard out or standard error.
git -c core.askpass=true ls-remote -h mobius-test@blue.perform.illinois.edu:/srv/git/grp/mobius/Mobius.git HEAD
- duplicates
-
JENKINS-22909 git plugin does not support username/password over ssh
-
- Closed
-
- is duplicated by
-
JENKINS-22909 git plugin does not support username/password over ssh
-
- Closed
-
That line usually means the call to "git fetch" failed. In your case, the message from the git fetch command:
indicates that it is trying to authenticate you and failing.
I created a multi-configuration job in my test network using various operating systems and git versions with two different forms of username / password authentication. My ssh server in these tests is a Ubuntu 14.04 machine hosting a repository in the directory /var/lib/git/mwaite/bugs/
JENKINS-28165.git. The master node is that Ubuntu 14.04 machine with the process running as the jenkins user. The repository is owned by the user mwaite.I've run out of time this morning to experiment with this, so won't be able to add more comments on this until after the end of the working day today.