I think your assessment is correct. The Jenkins slave on that computer cannot find the git executable. The "error performing command --version" would have been "git --version" if the git executable had been found.
One way to diagnose that condition is to create a Jenkins job which executes on that slave and has a single build step which executes "set". That will report the environment variables so that you can confirm the path to the Git executable is not in the PATH when the Jenkins slave agent starts. Mark Waite >________________________________ > From: ryantxu <ryan...@gmail.com> >To: jenkinsci-users@googlegroups.com >Sent: Tuesday, January 15, 2013 1:04 PM >Subject: Git errors on jenkins slave (windows) > > >I had a working jenkins build... then I started poking and am struggling to >get it back on its feet! > > >I *think* the error is that jenkins can not find the git path. It is in the >environment %PATH% > > >From cmd, when I run: >C:\Users\ryan>git --version >git version 1.8.0.msysgit.0 > > > > >The build error I get is: > > >Building remotely on build_101 in workspace C:\jenkins\workspace\product Build >.NET 10.1 >Checkout:product Build .NET 10.1 / C:\jenkins\workspace\product Build .NET >10.1 - hudson.remoting.Channel@3c4ae05b:build_101 >Using strategy: Default >Cloning the remote Git repository >Cloning repository g...@github.com:company/product.git >Error trying to determine the git version: Error performing command: --version >Assuming 1.6 >ERROR: Error cloning remote repo 'origin' : Could not clone >g...@github.com:company/product.git >hudson.plugins.git.GitException: Could not clone >g...@github.com:company/product.git >at hudson.plugins.git.GitAPI.clone(GitAPI.java:273) >at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) >at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) >at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) >at hudson.remoting.UserRequest.perform(UserRequest.java:118) >at hudson.remoting.UserRequest.perform(UserRequest.java:48) >at hudson.remoting.Request$2.run(Request.java:326) >at >hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) >at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) >at java.util.concurrent.FutureTask.run(Unknown Source) >at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) >at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >at hudson.remoting.Engine$1$1.run(Engine.java:58) >at java.lang.Thread.run(Unknown Source) >Caused by: hudson.plugins.git.GitException: Error performing command: clone >-o origin g...@github.com:company/product.git C:\jenkins\workspace\product >Build .NET 10.1 >at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:904) >at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42) >at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269) >at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248) >at hudson.FilePath.act(FilePath.java:852) >at hudson.FilePath.act(FilePath.java:825) >at hudson.plugins.git.GitAPI.clone(GitAPI.java:248) >... 13 more >Caused by: java.lang.NullPointerException >at hudson.Launcher.printCommandLine(Launcher.java:607) >at hudson.Launcher.maskedPrintCommandLine(Launcher.java:629) >at hudson.Launcher$LocalLauncher.launch(Launcher.java:754) >at hudson.Launcher$ProcStarter.start(Launcher.java:353) >at hudson.Launcher$ProcStarter.join(Launcher.java:360) >at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:885) >... 19 more >Trying next repository >ERROR: Could not clone repository >FATAL: Could not clone >hudson.plugins.git.GitException: Could not clone >at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056) >at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) >at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) >at hudson.remoting.UserRequest.perform(UserRequest.java:118) >at hudson.remoting.UserRequest.perform(UserRequest.java:48) >at hudson.remoting.Request$2.run(Request.java:326) >at >hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) >at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) >at java.util.concurrent.FutureTask.run(Unknown Source) >at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) >at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >at hudson.remoting.Engine$1$1.run(Engine.java:58) >at java.lang.Thread.run(Unknown Source) > > > > > > >any pointers would be great! > > >thank you >ryan > >