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

Windows authenticated git checkout fails if '(' or ')' in path to workspace

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Jenkins Server:
      Jenkins ver. 2.58
      git-client-plugin 2.4.5
      git-plugin 3.3.0

      Windows Slave:
      slave.jar (obtained from server/jnlpJars/slave.jar)
      Git-2.12.2.2-64-bit (default install)

      Builds on Windows slave fail reliably at git checkout

      Log:

      Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace\(FLASH)AXA-Module
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url git@git.domain.local:flash/axa-flash.git # timeout=10
      Fetching upstream changes from git@git.domain.local:flash/axa-flash.git
       > git --version # timeout=10
      using GIT_SSH to set credentials Jenkins deploy key
       > git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/axa-flash.git
      	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
      	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
      	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
      	at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
      	at hudson.scm.SCM.checkout(SCM.java:495)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
      	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:1735)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:405)
      Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
      stdout: 
      stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
      operable program or batch file.
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:336)
      	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:94)
      	at java.lang.Thread.run(Unknown Source)
      	at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:59588(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
      	at hudson.remoting.Channel.call(Channel.java:830)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	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:132)
      	at com.sun.proxy.$Proxy91.execute(Unknown Source)
      	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
      	... 12 more
      ERROR: null
      [BFA] Scanning build for known causes...
      [BFA] No failure causes found
      [BFA] Done. 0s
      Finished: FAILURE
      

          [JENKINS-44041] Windows authenticated git checkout fails if '(' or ')' in path to workspace

          Andrew Zed created issue -

          Mark Waite added a comment - - edited

          Since you're using ssh style authentication, I assume you're using a private key credential. If that is the case, then git client plugin 2.4.5 should already resolve the issue, without requiring that you use the snapshot build referenced below.

          See JENKINS-43931 for more details on the ssh private key authentication case.

          I've created a snapshot build which contains the one line modification to handle username / password cases (http and https base repository access). If you're using http or https repository access, you may need that change.

          I've been unable to duplicate the http / https problem on my Windows test machines. I'm hesitant to release a fix to a problem that I can't see for myself. Having a few users declare "snapshot build fixed it for me" will give me greater confidence to release the fix.

          Mark Waite added a comment - - edited Since you're using ssh style authentication, I assume you're using a private key credential. If that is the case, then git client plugin 2.4.5 should already resolve the issue, without requiring that you use the snapshot build referenced below. See JENKINS-43931 for more details on the ssh private key authentication case. I've created a snapshot build which contains the one line modification to handle username / password cases (http and https base repository access). If you're using http or https repository access, you may need that change. I've been unable to duplicate the http / https problem on my Windows test machines. I'm hesitant to release a fix to a problem that I can't see for myself. Having a few users declare "snapshot build fixed it for me" will give me greater confidence to release the fix.
          Mark Waite made changes -
          Link New: This issue duplicates JENKINS-43931 [ JENKINS-43931 ]
          Andrew Zed made changes -
          Description Original: Builds on Windows slave fail reliably at git checkout

          Slave started manually:
          {code:java}
          java -jar slave.jar -jnlpUrl http://192.168.100.10:8080/computer/Flex%%20slave/slave-agent.jnlp -secret <snip>
          {code}
           

          Log:
          Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace\(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/flash.git # timeout=10
          Fetching upstream changes from git@git.domain.local:flash/flash.git
           > git --version # timeout=10
          using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/flash.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
          at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
          at hudson.scm.SCM.checkout(SCM.java:495)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
          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:1735)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
          operable program or batch file.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
          at hudson.remoting.UserRequest.perform(UserRequest.java:153)
          at hudson.remoting.UserRequest.perform(UserRequest.java:50)
          at hudson.remoting.Request$2.run(Request.java:336)
          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:94)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:55590(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
          at hudson.remoting.Channel.call(Channel.java:830)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          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:132)
          at com.sun.proxy.$Proxy88.execute(Unknown Source)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
          ... 12 more
          ERROR: null
          [BFA] Scanning build for known causes...
          [BFA] No failure causes found
          [BFA] Done. 0s
          Finished: FAILURE



           
          New: Builds on Windows slave fail reliably at git checkout

          Log:

          \{quote}
           Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
           Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/flash.git # timeout=10
           Fetching upstream changes from git@git.domain.local:flash/flash.git
           > git --version # timeout=10
           using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/flash.git
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
           at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
           at hudson.scm.SCM.checkout(SCM.java:495)
           at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
           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:1735)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:405)
           Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
           operable program or batch file.
           fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
           and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
           at hudson.remoting.UserRequest.perform(UserRequest.java:153)
           at hudson.remoting.UserRequest.perform(UserRequest.java:50)
           at hudson.remoting.Request$2.run(Request.java:336)
           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:94)
           at java.lang.Thread.run(Unknown Source)
           at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:55590(Native Method)
           at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
           at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
           at hudson.remoting.Channel.call(Channel.java:830)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           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:132)
           at com.sun.proxy.$Proxy88.execute(Unknown Source)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
           ... 12 more
           ERROR: null
           [BFA] Scanning build for known causes...
           [BFA] No failure causes found
           [BFA] Done. 0s
           Finished: FAILURE

           \{quote}

          Mark Waite added a comment - - edited

          Do you really have a workspace on your computer named "C:\jenkins\workspace(FLASH)AXA-Module"?

          That's a truly surprising name for a workspace. It is especially surprising because the error message seems to indicate that C:\jenkins\workspace is a directory, yet "C:\jenkins\workspace(FLASH)AXA-Module" would be a peer directory of "C:\jenkins\workspace", not a subdirectory of it

          Mark Waite added a comment - - edited Do you really have a workspace on your computer named "C:\jenkins\workspace(FLASH)AXA-Module"? That's a truly surprising name for a workspace. It is especially surprising because the error message seems to indicate that C:\jenkins\workspace is a directory, yet "C:\jenkins\workspace(FLASH)AXA-Module" would be a peer directory of "C:\jenkins\workspace", not a subdirectory of it
          Andrew Zed made changes -
          Description Original: Builds on Windows slave fail reliably at git checkout

          Log:

          \{quote}
           Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
           Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/flash.git # timeout=10
           Fetching upstream changes from git@git.domain.local:flash/flash.git
           > git --version # timeout=10
           using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/flash.git
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
           at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
           at hudson.scm.SCM.checkout(SCM.java:495)
           at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
           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:1735)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:405)
           Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
           operable program or batch file.
           fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
           and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
           at hudson.remoting.UserRequest.perform(UserRequest.java:153)
           at hudson.remoting.UserRequest.perform(UserRequest.java:50)
           at hudson.remoting.Request$2.run(Request.java:336)
           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:94)
           at java.lang.Thread.run(Unknown Source)
           at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:55590(Native Method)
           at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
           at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
           at hudson.remoting.Channel.call(Channel.java:830)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           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:132)
           at com.sun.proxy.$Proxy88.execute(Unknown Source)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
           ... 12 more
           ERROR: null
           [BFA] Scanning build for known causes...
           [BFA] No failure causes found
           [BFA] Done. 0s
           Finished: FAILURE

           \{quote}
          New: Builds on Windows slave fail reliably at git checkout

          Log:

          \{quote}
           Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
           Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/flash.git # timeout=10
           Fetching upstream changes from git@git.domain.local:flash/flash.git
           > git --version # timeout=10
           using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/flash.git
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
           at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
           at hudson.scm.SCM.checkout(SCM.java:495)
           at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
           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:1735)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:405)
           Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
           operable program or batch file.
           fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
           and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
           at hudson.remoting.UserRequest.perform(UserRequest.java:153)
           at hudson.remoting.UserRequest.perform(UserRequest.java:50)
           at hudson.remoting.Request$2.run(Request.java:336)
           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:94)
           at java.lang.Thread.run(Unknown Source)
           at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:55590(Native Method)
           at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
           at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
           at hudson.remoting.Channel.call(Channel.java:830)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           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:132)
           at com.sun.proxy.$Proxy88.execute(Unknown Source)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
           ... 12 more
           ERROR: null
           [BFA] Scanning build for known causes...
           [BFA] No failure causes found
           [BFA] Done. 0s
           Finished: FAILURE

          \{quote}
          Andrew Zed made changes -
          Description Original: Builds on Windows slave fail reliably at git checkout

          Log:

          \{quote}
           Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
           Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/flash.git # timeout=10
           Fetching upstream changes from git@git.domain.local:flash/flash.git
           > git --version # timeout=10
           using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/flash.git
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
           at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
           at hudson.scm.SCM.checkout(SCM.java:495)
           at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
           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:1735)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:405)
           Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
           operable program or batch file.
           fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
           and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
           at hudson.remoting.UserRequest.perform(UserRequest.java:153)
           at hudson.remoting.UserRequest.perform(UserRequest.java:50)
           at hudson.remoting.Request$2.run(Request.java:336)
           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:94)
           at java.lang.Thread.run(Unknown Source)
           at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:55590(Native Method)
           at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
           at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
           at hudson.remoting.Channel.call(Channel.java:830)
           at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           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:132)
           at com.sun.proxy.$Proxy88.execute(Unknown Source)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
           ... 12 more
           ERROR: null
           [BFA] Scanning build for known causes...
           [BFA] No failure causes found
           [BFA] Done. 0s
           Finished: FAILURE

          \{quote}
          New: Builds on Windows slave fail reliably at git checkout

          Log:

          \{quote}
          Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace\(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/axa-flash.git # timeout=10
          Fetching upstream changes from git@git.domain.local:flash/axa-flash.git
           > git --version # timeout=10
          using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/axa-flash.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
          at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
          at hudson.scm.SCM.checkout(SCM.java:495)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
          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:1735)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
          operable program or batch file.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
          at hudson.remoting.UserRequest.perform(UserRequest.java:153)
          at hudson.remoting.UserRequest.perform(UserRequest.java:50)
          at hudson.remoting.Request$2.run(Request.java:336)
          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:94)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:59588(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
          at hudson.remoting.Channel.call(Channel.java:830)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          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:132)
          at com.sun.proxy.$Proxy91.execute(Unknown Source)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
          ... 12 more
          ERROR: null
          [BFA] Scanning build for known causes...
          [BFA] No failure causes found
          [BFA] Done. 0s
          Finished: FAILURE

          Andrew Zed added a comment - - edited

          hmm, that's a rendering issue in JIRA.

          edit: fixed by using "code" tag

          Andrew Zed added a comment - - edited hmm, that's a rendering issue in JIRA. edit : fixed by using "code" tag
          Andrew Zed made changes -
          Description Original: Builds on Windows slave fail reliably at git checkout

          Log:

          \{quote}
          Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace\(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/axa-flash.git # timeout=10
          Fetching upstream changes from git@git.domain.local:flash/axa-flash.git
           > git --version # timeout=10
          using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/axa-flash.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
          at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
          at hudson.scm.SCM.checkout(SCM.java:495)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
          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:1735)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
          operable program or batch file.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
          at hudson.remoting.UserRequest.perform(UserRequest.java:153)
          at hudson.remoting.UserRequest.perform(UserRequest.java:50)
          at hudson.remoting.Request$2.run(Request.java:336)
          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:94)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:59588(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
          at hudson.remoting.Channel.call(Channel.java:830)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          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:132)
          at com.sun.proxy.$Proxy91.execute(Unknown Source)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
          ... 12 more
          ERROR: null
          [BFA] Scanning build for known causes...
          [BFA] No failure causes found
          [BFA] Done. 0s
          Finished: FAILURE
          New: Builds on Windows slave fail reliably at git checkout

          Log:

          {quote}
          Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace\(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/axa-flash.git # timeout=10
          Fetching upstream changes from git@git.domain.local:flash/axa-flash.git
           > git --version # timeout=10
          using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/axa-flash.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
          at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
          at hudson.scm.SCM.checkout(SCM.java:495)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
          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:1735)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
          operable program or batch file.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
          at hudson.remoting.UserRequest.perform(UserRequest.java:153)
          at hudson.remoting.UserRequest.perform(UserRequest.java:50)
          at hudson.remoting.Request$2.run(Request.java:336)
          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:94)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:59588(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
          at hudson.remoting.Channel.call(Channel.java:830)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          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:132)
          at com.sun.proxy.$Proxy91.execute(Unknown Source)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
          ... 12 more
          ERROR: null
          [BFA] Scanning build for known causes...
          [BFA] No failure causes found
          [BFA] Done. 0s
          Finished: FAILURE
          {quote}
          Andrew Zed made changes -
          Description Original: Builds on Windows slave fail reliably at git checkout

          Log:

          {quote}
          Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace\(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/axa-flash.git # timeout=10
          Fetching upstream changes from git@git.domain.local:flash/axa-flash.git
           > git --version # timeout=10
          using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/axa-flash.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
          at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
          at hudson.scm.SCM.checkout(SCM.java:495)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
          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:1735)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
          operable program or batch file.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
          at hudson.remoting.UserRequest.perform(UserRequest.java:153)
          at hudson.remoting.UserRequest.perform(UserRequest.java:50)
          at hudson.remoting.Request$2.run(Request.java:336)
          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:94)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:59588(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
          at hudson.remoting.Channel.call(Channel.java:830)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          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:132)
          at com.sun.proxy.$Proxy91.execute(Unknown Source)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
          ... 12 more
          ERROR: null
          [BFA] Scanning build for known causes...
          [BFA] No failure causes found
          [BFA] Done. 0s
          Finished: FAILURE
          {quote}
          New: Builds on Windows slave fail reliably at git checkout

          Log:

          {code}
          Building remotely on Flex slave (flash) in workspace C:\jenkins\workspace\(FLASH)AXA-Module
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url git@git.domain.local:flash/axa-flash.git # timeout=10
          Fetching upstream changes from git@git.domain.local:flash/axa-flash.git
           > git --version # timeout=10
          using GIT_SSH to set credentials Jenkins deploy key
           > git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from git@git.domain.local:flash/axa-flash.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
          at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
          at hudson.scm.SCM.checkout(SCM.java:495)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
          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:1735)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@git.domain.local:flash/axa-flash.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: 'C:\jenkins\workspace\' is not recognized as an internal or external command,
          operable program or batch file.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
          at hudson.remoting.UserRequest.perform(UserRequest.java:153)
          at hudson.remoting.UserRequest.perform(UserRequest.java:50)
          at hudson.remoting.Request$2.run(Request.java:336)
          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:94)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to JNLP4-connect connection from 192.168.100.20/192.168.100.20:59588(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
          at hudson.remoting.Channel.call(Channel.java:830)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          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:132)
          at com.sun.proxy.$Proxy91.execute(Unknown Source)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
          ... 12 more
          ERROR: null
          [BFA] Scanning build for known causes...
          [BFA] No failure causes found
          [BFA] Done. 0s
          Finished: FAILURE
          {code}

            markewaite Mark Waite
            packeteer Andrew Zed
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: