The command that is listed there is a surprise.  I think it should say "git 
ls-remote ..." rather than "ls-remote ...".  

I wonder if your Jenkins is unable to locate the Git executable?  Check the 
system configuration screen to see if it is pointing to a non-existent git 
executable, or possibly to a git executable on the master which does not exist 
on a slace.

You might also check the "Advanced" section of the Jenkins to see if the "fast 
remote polling" is enabled.  I believe the git plugin using the "ls-remote" 
command to perform fast remote polling.  I think that is less likely to be the 
problem, since the polling command should be "git ls-remote" rather than 
"ls-remote".

Mark Waite



>________________________________
> From: Jeff <[email protected]>
>To: [email protected] 
>Sent: Wednesday, March 6, 2013 5:35 PM
>Subject: GIT and Jenkins
> 
>
>I thought I asked this and fixed it before, but it has come up again and I am 
>not seeing this in the archives....
>
>
>When we setup a job that pulls source from GIT, I see this error shown below 
>the "Repository URL" box:
>
>
>
>
>Failed to connect to repository : Error performing command:  ls-remote -h 
>[email protected]:myRepo/myApp.git HEAD 
>
>
>or for projects using our internal GitoLIte repo:
>
>
>
>
>Failed to connect to repository : Error performing command:  ls-remote -h 
>[email protected]:myInternalApp.git HEAD 
>
>
>The project "clone"s and builds just fine, but I don't think the SCM Polling 
>works properly and I think it is related to the above issue.
>
>
>Any idea what it might be?  Google searches indicate that the absolute path to 
>the git binary must be specified, which I've set (/usr/bin/git).
>
>
>I've set the git user.name/user.email environment values on the job settings.
>
>
>I don't know what else to look at.  Thoughts?
>
>-- 
>
>Jeff Vincent
>See my LinkedIn profile at:
>http://www.linkedin.com/in/rjeffreyvincent
>I ♥ DropBox !!  
-- 
>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 [email protected].
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to