Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55827

Git Plugin 3.9.2 ignores agent local tool definition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      We are facing issue with latest Git 3.9.2

       

       

      gitTool = tool name: 'GitClient', type: 'git'
      [...]
      execute("\"${gitTool}\" init --bare")
      

       

       

      This triggers the following

       
      **

      07:33:41 using credential bdcfb1c1-c930-4ed5-ad55-b459b1540670
      07:33:41 Cloning the remote Git repository
      07:33:41 Cloning with configured refspecs honoured and without tags
      07:33:41 ERROR: Error cloning remote repo 'origin'
      07:33:41 hudson.plugins.git.GitException: Could not init C:\Jenkins2\workspace\XXX\XXX
      07:33:41 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:813)
      07:33:41 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:605)
      07:33:41 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
      07:33:41 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
      07:33:41 	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
      07:33:41 	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      07:33:41 	at hudson.remoting.Request$2.run(Request.java:369)
      07:33:41 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      07:33:41 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      07:33:41 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      07:33:41 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      07:33:41 	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
      07:33:41 	at java.lang.Thread.run(Thread.java:748)
      07:33:41 	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from uksndvjen2.usr.XXXX.loc/10.16.2.29:54736
      07:33:41 		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
      07:33:41 		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
      07:33:41 		at hudson.remoting.Channel.call(Channel.java:957)
      07:33:41 		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
      07:33:41 		at sun.reflect.GeneratedMethodAccessor803.invoke(Unknown Source)
      07:33:41 		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      07:33:41 		at java.lang.reflect.Method.invoke(Method.java:498)
      07:33:41 		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
      07:33:41 		at com.sun.proxy.$Proxy127.execute(Unknown Source)
      07:33:41 		at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1139)
      07:33:41 		at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1179)
      07:33:41 		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
      07:33:41 		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
      07:33:41 		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
      07:33:41 		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      07:33:41 		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      07:33:41 		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      07:33:41 		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      07:33:41 		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      07:33:41 		... 1 more
      07:33:41 Caused by: hudson.plugins.git.GitException: Error performing command: /usr/bin/git init C:\Jenkins2\workspace\XXX\XXX
      07:33:41 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2049)
      07:33:41 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2010)
      07:33:41 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2006)
      07:33:41 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1638)
      07:33:41 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:811)
      07:33:41 	... 12 more
      07:33:41 Caused by: java.io.IOException: Cannot run program "/usr/bin/git" (in directory "C:\Jenkins2\workspace\XXX\XXX"): CreateProcess error=2, The system cannot find the file specified
      07:33:41 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
      07:33:41 	at hudson.Proc$LocalProc.<init>(Proc.java:249)
      07:33:41 	at hudson.Proc$LocalProc.<init>(Proc.java:218)
      07:33:41 	at hudson.Launcher$LocalLauncher.launch(Launcher.java:936)
      07:33:41 	at hudson.Launcher$ProcStarter.start(Launcher.java:455)
      07:33:41 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2038)
      07:33:41 	... 16 more
      07:33:41 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      07:33:41 	at java.lang.ProcessImpl.create(Native Method)
      07:33:41 	at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
      07:33:41 	at java.lang.ProcessImpl.start(ProcessImpl.java:137)
      07:33:41 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
      07:33:41 	... 21 more

       

       

      Lots of thing were introduced between 3.9.1 and 3.9.2 so I struggle to find an explanation for this change of behaviour. Would you please be able to support?

       

       

        Attachments

          Activity

          rvangoethem Remi Van Goethem created issue -
          rvangoethem Remi Van Goethem made changes -
          Field Original Value New Value
          Description We are facing issue with latest Git 3.9.2

           

           
          {code:java}
          gitTool = tool name: 'GitClient', type: 'git'
          [...]
          execute("\"${gitTool}\" init --bare")
          {code}
           

           

          This triggers the following

           
          *07:33:41* using credential bdcfb1c1-c930-4ed5-ad55-b459b1540670*07:33:41* Cloning the remote Git repository*07:33:41* Cloning with configured refspecs honoured and without tags*07:33:41* ERROR: Error cloning remote repo 'origin'*07:33:41* hudson.plugins.git.GitException: Could not init C:\Jenkins2\workspace\{color:#FF0000}XXXX{color}\{color:#FF0000}XXXX{color}*07:33:41* at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:813)*07:33:41* at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:605)*07:33:41* at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)*07:33:41* at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)*07:33:41* at hudson.remoting.UserRequest.perform(UserRequest.java:212)*07:33:41* at hudson.remoting.UserRequest.perform(UserRequest.java:54)*07:33:41* at hudson.remoting.Request$2.run(Request.java:369)*07:33:41* at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)*07:33:41* at java.util.concurrent.FutureTask.run(FutureTask.java:266)*07:33:41* at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)*07:33:41* at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)*07:33:41* at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)*07:33:41* at java.lang.Thread.run(Thread.java:748)*07:33:41* Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from uksndvjen2.usr.{color:#FF0000}XXXXX{color}.loc/10.16.2.29:54736*07:33:41* at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)*07:33:41* at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)*07:33:41* at hudson.remoting.Channel.call(Channel.java:957)*07:33:41* at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)*07:33:41* at sun.reflect.GeneratedMethodAccessor803.invoke(Unknown Source)*07:33:41* at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*07:33:41* at java.lang.reflect.Method.invoke(Method.java:498)*07:33:41* at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)*07:33:41* at com.sun.proxy.$Proxy127.execute(Unknown Source)*07:33:41* at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1139)*07:33:41* at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1179)*07:33:41* at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)*07:33:41* at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)*07:33:41* at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)*07:33:41* at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)*07:33:41* at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)*07:33:41* at java.util.concurrent.FutureTask.run(FutureTask.java:266)*07:33:41* at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)*07:33:41* at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)*07:33:41* ... 1 more*07:33:41* Caused by: hudson.plugins.git.GitException: Error performing command: /usr/bin/git init C:\Jenkins2\workspace\{color:#FF0000}XXX{color}\{color:#FF0000}XXX{color}*07:33:41* at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2049)*07:33:41* at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2010)*07:33:41* at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2006)*07:33:41* at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1638)*07:33:41* at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:811)*07:33:41* ... 12 more*07:33:41* Caused by: java.io.IOException: Cannot run program "/usr/bin/git" (in directory "C:\Jenkins2\workspace\{color:#FF0000}XXX{color}\{color:#FF0000}XXX{color}"): CreateProcess error=2, The system cannot find the file specified*07:33:41* at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)*07:33:41* at hudson.Proc$LocalProc.<init>(Proc.java:249)*07:33:41* at hudson.Proc$LocalProc.<init>(Proc.java:218)*07:33:41* at hudson.Launcher$LocalLauncher.launch(Launcher.java:936)*07:33:41* at hudson.Launcher$ProcStarter.start(Launcher.java:455)*07:33:41* at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2038)*07:33:41* ... 16 more*07:33:41* Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified*07:33:41* at java.lang.ProcessImpl.create(Native Method)*07:33:41* at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)*07:33:41* at java.lang.ProcessImpl.start(ProcessImpl.java:137)*07:33:41* at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)*07:33:41* ... 21 more
          !image-2019-01-29-08-30-00-454.png!

           

           

          Lots of thing were introduced between 3.9.1 and 3.9.2 so I struggle to find an explanation for this change of behaviour. Would you please be able to support?

           

           
          We are facing issue with latest Git 3.9.2

           

           
          {code:java}
          gitTool = tool name: 'GitClient', type: 'git'
          [...]
          execute("\"${gitTool}\" init --bare")
          {code}
           

           

          This triggers the following

           
           **
          {code:java}
          07:33:41 using credential bdcfb1c1-c930-4ed5-ad55-b459b1540670
          07:33:41 Cloning the remote Git repository
          07:33:41 Cloning with configured refspecs honoured and without tags
          07:33:41 ERROR: Error cloning remote repo 'origin'
          07:33:41 hudson.plugins.git.GitException: Could not init C:\Jenkins2\workspace\XXX\XXX
          07:33:41 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:813)
          07:33:41 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:605)
          07:33:41 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
          07:33:41 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
          07:33:41 at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          07:33:41 at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          07:33:41 at hudson.remoting.Request$2.run(Request.java:369)
          07:33:41 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          07:33:41 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          07:33:41 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          07:33:41 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          07:33:41 at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
          07:33:41 at java.lang.Thread.run(Thread.java:748)
          07:33:41 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from uksndvjen2.usr.XXXX.loc/10.16.2.29:54736
          07:33:41 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
          07:33:41 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
          07:33:41 at hudson.remoting.Channel.call(Channel.java:957)
          07:33:41 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          07:33:41 at sun.reflect.GeneratedMethodAccessor803.invoke(Unknown Source)
          07:33:41 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          07:33:41 at java.lang.reflect.Method.invoke(Method.java:498)
          07:33:41 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
          07:33:41 at com.sun.proxy.$Proxy127.execute(Unknown Source)
          07:33:41 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1139)
          07:33:41 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1179)
          07:33:41 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
          07:33:41 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
          07:33:41 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
          07:33:41 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
          07:33:41 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          07:33:41 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          07:33:41 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          07:33:41 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          07:33:41 ... 1 more
          07:33:41 Caused by: hudson.plugins.git.GitException: Error performing command: /usr/bin/git init C:\Jenkins2\workspace\XXX\XXX
          07:33:41 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2049)
          07:33:41 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2010)
          07:33:41 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2006)
          07:33:41 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1638)
          07:33:41 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:811)
          07:33:41 ... 12 more
          07:33:41 Caused by: java.io.IOException: Cannot run program "/usr/bin/git" (in directory "C:\Jenkins2\workspace\XXX\XXX"): CreateProcess error=2, The system cannot find the file specified
          07:33:41 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
          07:33:41 at hudson.Proc$LocalProc.<init>(Proc.java:249)
          07:33:41 at hudson.Proc$LocalProc.<init>(Proc.java:218)
          07:33:41 at hudson.Launcher$LocalLauncher.launch(Launcher.java:936)
          07:33:41 at hudson.Launcher$ProcStarter.start(Launcher.java:455)
          07:33:41 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2038)
          07:33:41 ... 16 more
          07:33:41 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
          07:33:41 at java.lang.ProcessImpl.create(Native Method)
          07:33:41 at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
          07:33:41 at java.lang.ProcessImpl.start(ProcessImpl.java:137)
          07:33:41 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
          07:33:41 ... 21 more{code}

           !image-2019-01-29-08-30-00-454.png!

           

           

          Lots of thing were introduced between 3.9.1 and 3.9.2 so I struggle to find an explanation for this change of behaviour. Would you please be able to support?

           

           
          rvangoethem Remi Van Goethem made changes -
          Priority Minor [ 4 ] Major [ 3 ]
          markewaite Mark Waite made changes -
          Assignee Mark Waite [ markewaite ]
          rvangoethem Remi Van Goethem made changes -
          Attachment image-2019-01-29-12-16-10-932.png [ 45826 ]
          markewaite Mark Waite made changes -
          Summary Git Plugin 3.9.2 cannot clone remote repo Git Plugin 3.9.2 ignores agent local tool definition
          markewaite Mark Waite made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          markewaite Mark Waite made changes -
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rvangoethem Remi Van Goethem
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: