-
Bug
-
Resolution: Not A Defect
-
Blocker
-
None
-
Jenkins Image: jenkins/jenkins
Windows agent OS: jenkins/ssh-agent:windowsservercore-ltsc2019
We have defined the git.exe directory.
The agent is running on a Docker container but we have also problems when there is no Docker and we only have an ssh connection.
_______________________________________________________________________________________________________________
// 13:05:35 Building remotely on muenster in workspace C:/Users/jenkins/Work/workspace/ecu-test-collaboration 13:05:35 The recommended git tool is: NONE 13:05:35 using credential f0481297-de46-4679-b0cf-d043a5ed5f7e 13:05:35 Cloning the remote Git repository 13:05:35 Cloning repository https://atc.bmwgroup.net/bitbucket/scm/dipstt/ecu-test-collaboration.git 13:05:35 > C:\Users\jenkins\Work\programs\bin\git.exe init C:\Users\jenkins\Work\workspace\ecu-test-collaboration # timeout=10 13:05:35 ERROR: Error cloning remote repo 'origin' 13:05:35 hudson.plugins.git.GitException: Could not init C:\Users\jenkins\Work\workspace\ecu-test-collaboration 13:05:35 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:1047) 13:05:35 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:802) 13:05:35 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158) 13:05:35 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151) 13:05:35 at hudson.remoting.UserRequest.perform(UserRequest.java:211) 13:05:35 at hudson.remoting.UserRequest.perform(UserRequest.java:54) 13:05:35 at hudson.remoting.Request$2.run(Request.java:377) 13:05:35 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78) 13:05:35 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 13:05:35 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 13:05:35 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 13:05:35 at java.base/java.lang.Thread.run(Thread.java:833) 13:05:35 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to muenster 13:05:35 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784) 13:05:35 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) 13:05:35 at hudson.remoting.Channel.call(Channel.java:1000) 13:05:35 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:143) 13:05:35 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 13:05:35 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 13:05:35 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 13:05:35 at java.base/java.lang.reflect.Method.invoke(Method.java:566) 13:05:35 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:129) 13:05:35 at com.sun.proxy.$Proxy66.execute(Unknown Source) 13:05:35 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1226) 13:05:35 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1309) 13:05:35 at hudson.scm.SCM.checkout(SCM.java:540) 13:05:35 at hudson.model.AbstractProject.checkout(AbstractProject.java:1240) 13:05:35 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:649) 13:05:35 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85) 13:05:35 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:521) 13:05:35 at hudson.model.Run.execute(Run.java:1900) 13:05:35 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) 13:05:35 at hudson.model.ResourceController.execute(ResourceController.java:101) 13:05:35 at hudson.model.Executor.run(Executor.java:442) 13:05:35 Caused by: hudson.plugins.git.GitException: Error performing git command: C:\Users\jenkins\Work\programs\bin\git.exe init C:\Users\jenkins\Work\workspace\ecu-test-collaboration 13:05:35 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2744) 13:05:35 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2658) 13:05:35 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2654) 13:05:35 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1979) 13:05:35 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:1045) 13:05:35 ... 11 more 13:05:35 Caused by: java.io.IOException: Cannot run program "C:\Users\jenkins\Work\programs\bin\git.exe" (in directory "C:\Users\jenkins\Work\workspace\ecu-test-collaboration"): CreateProcess error=2, The system cannot find the file specified 13:05:35 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) 13:05:35 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) 13:05:35 at hudson.Proc$LocalProc.<init>(Proc.java:254) 13:05:35 at hudson.Proc$LocalProc.<init>(Proc.java:223) 13:05:35 at hudson.Launcher$LocalLauncher.launch(Launcher.java:997) 13:05:35 at hudson.Launcher$ProcStarter.start(Launcher.java:509) 13:05:35 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2725) 13:05:35 ... 15 more 13:05:35 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 13:05:35 at java.base/java.lang.ProcessImpl.create(Native Method) 13:05:35 at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:499) 13:05:35 at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158) 13:05:35 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) 13:05:35 ... 21 more 13:05:35 ERROR: Error cloning remote repo 'origin' 13:05:35 Finished: FAILURE