I'm still seeing this issue. When poking around the jenkins settings, I see two XML files related to Git stuff. They are:
- - hudson.plugins.git.GitSCM.xml - hudson.plugins.git.GitTool.xml Are both of these needed? The content of the file `*GitTool.xml` has my settings and looks correct, including the value for "toolHome": <?xml version='1.0' encoding='UTF-8'?> <hudson.plugins.git.GitTool_-DescriptorImpl plugin="git-client@1.0.3"> <installations class="hudson.plugins.git.GitTool-array"> <hudson.plugins.git.GitTool> <name>Default</name> <home></home> <properties> <hudson.tools.InstallSourceProperty> <installers> <hudson.tools.ZipExtractionInstaller> <label>Windows</label> <url> http://msysgit.googlecode.com/files/PortableGit-1.8.0-preview20121022.7z </url> </hudson.tools.ZipExtractionInstaller> <hudson.tools.CommandInstaller> <label>Linux</label> <command>sudo apt-get install git</command> <toolHome>*/usr/bin/git*</toolHome> </hudson.tools.CommandInstaller> </installers> </hudson.tools.InstallSourceProperty> </properties> </hudson.plugins.git.GitTool> </installations> </hudson.plugins.git.GitTool_-DescriptorImpl> I don't know what the content of the other is used for: <?xml version='1.0' encoding='UTF-8'?> <hudson.plugins.git.GitSCM_-DescriptorImpl plugin="git@1.2.0"> <generation>17</generation> <globalConfigName></globalConfigName> <globalConfigEmail></globalConfigEmail> <createAccountBasedOnEmail>false</createAccountBasedOnEmail> </hudson.plugins.git.GitSCM_-DescriptorImpl> Do these look right? On Thu, Mar 7, 2013 at 4:33 PM, Jeff <predato...@gmail.com> wrote: > Thanks! > > I do have automatic installation of git, but I already had my master node > labeled `Linux`. I also have an installer for Git that runs `sudo apt-get > install git` for nodes labeled 'Linux'. > > I should note that this issue was resolved but has now reappeared. I had > the ls-remote error resolved (I believe it was specifying the absolute path > to Git) a while back. I think I was using Jenkins v1.496 or v1.498. I > don't know what changed since, other than I've upgraded a few times and am > now on v1.503. If I get time, I can revert but would rather not. If there > is something else I can debug or look at, please let me know what it is. > > -Jeff > > > On Thu, Mar 7, 2013 at 4:17 PM, Michaël Pailloncy <mpapo....@gmail.com>wrote: > >> We've the same type of error. >> >> Do you use the automatic installation feature of tools like Git, Maven, >> Java ... ? >> >> In our case, the master does not build anything (except admin jobs) and >> we have automatics tools installation activated with HTTP URL pointing >> directly to our internal Nexus which stores all "ziped" tools. >> The master node is not configured with label like "git-1.7" or >> "maven-3.0.4" and the "ls-remote" fails when opening the configuration page >> of any job using Git SCM. >> >> We don't have sought any solution for the moment because it's not >> blocking and all Git jobs just works fine. >> >> Hope this help ! >> >> >> 2013/3/7 Jeff <predato...@gmail.com> >> >>> Thanks for the suggestions. Here is more detail regarding >>> questions/suggestions: (Jenkins v 1.503) >>> >>> I have one master and 3 slaves. The master is running as user >>> `tomcat7`. The slaves run as user `adminuser`. The master has two build >>> executors, the slaves each have 3. The Git 'clone' command runs on any of >>> them. I have verified that the build (including the git clone) has run on >>> master and slave1 successfully. >>> >>> I verified the master has the same key files as the slaves do. They >>> are located in `/home/tomcat7/.ssh` for the master and >>> `/home/adminuser/.ssh` for the slaves. >>> >>> I can run 'git ls-remote -h' if I manually ssh to the master or slaves >>> and `su` as tomcat7 or adminuser. >>> >>> I've verified that the full path to Git installation in Jenkins config >>> is specified (/usr/bin/git). If I leave off 'git' and just set it to >>> /usr/bin all Git jobs fail. >>> >>> Fast remote polling is NOT set on any of my jobs. >>> >>> >>> >>> >>> On Thu, Mar 7, 2013 at 6:03 AM, nicolas de loof < >>> nicolas.del...@gmail.com> wrote: >>> >>>> right, ls-remote is used to validate repository URL (form master) and >>>> to poll scm (single branch) >>>> >>>> >>>> 2013/3/7 Eduardo Dias <eduardodia...@gmail.com> >>>> >>>>> I had the same problem and done what Nicolas suggested and the >>>>> message stopped. Even Jenkins does not use master to build the jenkis >>>>> master try to access repository. >>>>> >>>>> >>>>> 2013/3/7 nicolas de loof <nicolas.del...@gmail.com> >>>>> >>>>>> does the clone run on master or some slave ? >>>>>> >>>>>> this "ls-remote" command is executed on master, maybe you just miss >>>>>> the adequate ssh key there. Long term plan is to integrate >>>>>> ssh-credentials-plugin in git-plugin to manage this. >>>>>> >>>>>> >>>>>> 2013/3/7 Jeff <predato...@gmail.com> >>>>>> >>>>>>> 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 g...@github.com:myRepo/myApp.git HEAD >>>>>>> >>>>>>> or for projects using our internal GitoLIte repo: >>>>>>> >>>>>>> >>>>>>> Failed to connect to repository : Error performing command: >>>>>>> ls-remote -h gitol...@git1.mycompany.int: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 <http://db.tt/9O6LfBX> !! >>>>>>> >>>>>>> -- >>>>>>> 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-users+unsubscr...@googlegroups.com. >>>>>>> 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 jenkinsci-users+unsubscr...@googlegroups.com. >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Atenciosamente, >>>>> >>>>> Eduardo >>>>> >>>>> -- >>>>> 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-users+unsubscr...@googlegroups.com. >>>>> 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 jenkinsci-users+unsubscr...@googlegroups.com. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> >>> >>> -- >>> Jeff Vincent >>> See my LinkedIn profile at: >>> http://www.linkedin.com/in/rjeffreyvincent >>> I ♥ DropBox <http://db.tt/9O6LfBX> !! >>> >>> -- >>> 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-users+unsubscr...@googlegroups.com. >>> 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 jenkinsci-users+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Jeff Vincent > See my LinkedIn profile at: > http://www.linkedin.com/in/rjeffreyvincent > I ♥ DropBox <http://db.tt/9O6LfBX> !! > -- Jeff Vincent See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent I ♥ DropBox <http://db.tt/9O6LfBX> !! -- 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-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.