Hello,

I'm running Jenkins 2.7.3 from a CentOS master invoking Git commands on a 
Windows 8.1 machine.

git commands, such as the following, succeed when run within a "Windows 
batch command" step.


*git clone --verbose --recursive --branch fs02 
ssh://[email protected]:29418/Crown.git*
But, when the plugin tried to execute the command, I got:

Cloning the remote Git repositoryCloning repository 
ssh://[email protected]:29418/Crown.git > git init 
C:\home\Evo # timeout=10ERROR: Error cloning remote repo 
'origin'hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 Could not init C:\home\Evo  at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:663) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute&entity=method>
       at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:464) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute&entity=method>
       at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call&entity=method>
   at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call&entity=method>
   at hudson.remoting.UserRequest.perform(UserRequest.java:153) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method>
 at hudson.remoting.UserRequest.perform(UserRequest.java:50) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method>
  at hudson.remoting.Request$2.run(Request.java:332) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.run&entity=method>
 at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.call&entity=method>
    at java.util.concurrent.FutureTask.run(Unknown Source)  at 
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)   at 
hudson.remoting.Engine$1$1.run(Engine.java:85)       at 
java.lang.Thread.run(Unknown Source) at ......remote call to 
nextgencibuild(Native Method)   at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)  at 
hudson.remoting.UserResponse.retrieve(UserRequest.java:253)  at 
hudson.remoting.Channel.call(Channel.java:781)       at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:145)
       at sun.reflect.GeneratedMethodAccessor267.invoke(Unknown Source)        
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)     at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:131)
        at com.sun.proxy.$Proxy53.execute(Unknown Source)       at 
hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1042)  at 
hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082) at 
hudson.scm.SCM.checkout(SCM.java:495)        at 
hudson.model.AbstractProject.checkout(AbstractProject.java:1269)     at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)    
    at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)   
     at hudson.model.Run.execute(Run.java:1741)      at 
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)      at 
hudson.model.ResourceController.execute(ResourceController.java:98)  at 
hudson.model.Executor.run(Executor.java:410)Caused by: 
hudson.plugins.git.GitException: Error performing command: git init C:\home\Evo 
      at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1759)
       at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1725)
       at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1721)
       at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1391)
 at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:661) 
     at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:464) 
     at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
        at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
        at hudson.remoting.UserRequest.perform(UserRequest.java:153)    at 
hudson.remoting.UserRequest.perform(UserRequest.java:50)     at 
hudson.remoting.Request$2.run(Request.java:332)      at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(Unknown Source)  at 
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)   at 
hudson.remoting.Engine$1$1.run(Engine.java:85)       at 
java.lang.Thread.run(Unknown Source)Caused by: java.io.IOException: Cannot run 
program "git" (in directory "C:\home\Evo"): CreateProcess error=2, The system 
cannot find the file specified  at java.lang.ProcessBuilder.start(Unknown 
Source)       at hudson.Proc$LocalProc.<init>(Proc.java:240)  at 
hudson.Proc$LocalProc.<init>(Proc.java:212)  at 
hudson.Launcher$LocalLauncher.launch(Launcher.java:815)      at 
hudson.Launcher$ProcStarter.start(Launcher.java:381) at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1748)
       ... 16 moreCaused by: java.io.IOException: CreateProcess error=2, The 
system cannot find the file specified     at 
java.lang.ProcessImpl.create(Native Method)  at 
java.lang.ProcessImpl.<init>(Unknown Source) at 
java.lang.ProcessImpl.start(Unknown Source)  ... 22 moreERROR: null



Thank you.
Do you have any ideas of what is going wrong with the plugin.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4104667c-6c5d-4b1c-9c80-2de61efffd57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to