Git via SSH is not working on this new install

150 views
Skip to first unread message

Ken Keefe

unread,
Apr 29, 2015, 5:31:44 PM4/29/15
to jenkins...@googlegroups.com
I am trying to get my first Jenkins install up and running. I have set up a ubuntu 14.04 dumb slave. I am trying to get the slave to simply clone a git repo from an SSH server as a starting point. Unfortunately it keeps failing. Here is a pastebin of the job's log: http://pastebin.com/2LVkaQcG

What is frustrating is that I can ssh into the slave machine as my jenkins user. cd to the workspace directory with the local repo and execute line 8 and it prompts me for my password and works correctly. I can't figure out why the error starting on line 9 is happening. I am using a username/password credential to access the git repo.

Mark Waite

unread,
Apr 29, 2015, 9:51:37 PM4/29/15
to jenkins...@googlegroups.com
If you embed the user name and the password into the SSH url, does it succeed from within the Jenkins job?

On Wed, Apr 29, 2015 at 3:31 PM Ken Keefe <kjkeef...@gmail.com> wrote:
I am trying to get my first Jenkins install up and running. I have set up a ubuntu 14.04 dumb slave. I am trying to get the slave to simply clone a git repo from an SSH server as a starting point. Unfortunately it keeps failing. Here is a pastebin of the job's log: http://pastebin.com/2LVkaQcG

What is frustrating is that I can ssh into the slave machine as my jenkins user. cd to the workspace directory with the local repo and execute line 8 and it prompts me for my password and works correctly. I can't figure out why the error starting on line 9 is happening. I am using a username/password credential to access the git repo.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/110cd0ef-36b4-4e07-b4fb-f31a4130cc99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ken Keefe

unread,
Apr 29, 2015, 10:36:34 PM4/29/15
to jenkins...@googlegroups.com
I tried embedding the username and not embedding the username. Both result in the exact same error. Is there a way to embed the password too?

Ken

Mark Waite

unread,
Apr 29, 2015, 11:00:29 PM4/29/15
to jenkins...@googlegroups.com
The syntax which allows embedding user name and password into the URL seems to be https.  I run tests of the git client plugin with this as a sample URL:


I also have a job in my test kit which uses a username / password credential (entered through the Jenkins credentials system) which reads from a remote repository using ssh protocol with the username / password pair specified in the credential.


Unfortunately, all that does it hint that it works for me.  I don't have any way of telling you what to change to make it work for you.  Sorry.

Mark Waite

Reply all
Reply to author
Forward
0 new messages