• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins ver. 2.107.1
      Git plugin 3.8.0

      Jenkins is not able to clean workspace before updating strace git checkout. It crashes with

      Started by upstream project "[strace]" build number [98]
      originally caused by:
      Started by an SCM change
      Building remotely on 
      [p8-ppc64le]
      (Fedora F27 ppc64le) in workspace /home/jenkins/workspace/strace/label/ppc64le
      Cloning the remote Git repository
      Cloning repository 
      [https://github.com/strace/strace.git]
      ERROR: Failed to clean the workspace
      java.io.IOException: Unable to delete '/home/jenkins/workspace/strace/label/ppc64le'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
      at hudson.Util.deleteContentsRecursive(Util.java:238)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)
      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:210)
      at hudson.remoting.UserRequest.perform(UserRequest.java:53)
      at hudson.remoting.Request$2.run(Request.java:364)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: Unable to delete /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir - files in dir: [/home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir/078 9
      1
      78 \'"<<0::0>>1~��]
      at hudson.Util.tryOnceDeleteFile(Util.java:303)
      at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
      at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)
      at hudson.Util.tryOnceDeleteRecursive(Util.java:368)
      at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)
      at hudson.Util.deleteContentsRecursive(Util.java:233)
      ... 11 more
      Caused by: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir
      at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
      at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      at java.nio.file.Files.deleteIfExists(Files.java:1165)
      at hudson.Util.tryOnceDeleteFile(Util.java:297)
      ... 16 more
      ERROR: Error cloning remote repo 'origin'
      hudson.plugins.git.GitException: Failed to delete workspace
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:558)
      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:210)
      at hudson.remoting.UserRequest.perform(UserRequest.java:53)
      at hudson.remoting.Request$2.run(Request.java:364)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to p8-ppc64le
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:313)
      at hudson.remoting.Channel.call(Channel.java:952)
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
      at sun.reflect.GeneratedMethodAccessor821.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:132)
      at com.sun.proxy.$Proxy66.execute(Unknown Source)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1120)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
      at hudson.scm.SCM.checkout(SCM.java:504)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1203)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      at hudson.model.Run.execute(Run.java:1727)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Caused by: java.io.IOException: Unable to delete '/home/jenkins/workspace/strace/label/ppc64le'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
      at hudson.Util.deleteContentsRecursive(Util.java:238)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)
      ... 10 more
      Caused by: java.io.IOException: Unable to delete /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir - files in dir: [/home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir/078 9
      1
      78 \'"<<0::0>>1~��]
      at hudson.Util.tryOnceDeleteFile(Util.java:303)
      at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
      at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)
      at hudson.Util.tryOnceDeleteRecursive(Util.java:368)
      at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)
      at hudson.Util.deleteContentsRecursive(Util.java:233)
      ... 11 more
      Caused by: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir
      at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
      at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      at java.nio.file.Files.deleteIfExists(Files.java:1165)
      at hudson.Util.tryOnceDeleteFile(Util.java:297)
      ... 16 more
      ERROR: Error cloning remote repo 'origin'
      Finished: FAILURE
      

       

      Clearly there is a problem with non-ascii/non-utf8/crazy characters in the filenames created by strace test-suite

          [JENKINS-50729] exception when cleaning workspace

          Dan Horák created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]

          Mark Waite added a comment -

          What are the precise file names of the files which can't be deleted?

          Are the files removed by a rm -rf directory-name?

          Are the files removed by git clean -xffd?

          Mark Waite added a comment - What are the precise file names of the files which can't be deleted? Are the files removed by a rm -rf directory-name ? Are the files removed by git clean -xffd ?

          Dan Horák added a comment -

          [jenkins@guest02 ~]$ ll workspace/strace/label/ppc64le/tests/fsync-y.dir/
          total 0
          rw------. 1 jenkins jenkins 0 Apr 3 13:27 '\001\002''0'$'\v\004''7'$'\f\005''8'$'\t\a''9'$'\n\b\017''1'$'\r\016''7'$'\021''8'$'\037'' \'\''"<<0::0>>1~'$'\177\200\377'

           

          I can upload a tar with the offending filename.

          yes, rm -rf removes the dir

          yes, git clean -xfd removes the dir

          Dan Horák added a comment - [jenkins@guest02 ~] $ ll workspace/strace/label/ppc64le/tests/fsync-y.dir/ total 0 rw ------. 1 jenkins jenkins 0 Apr 3 13:27 '\001\002''0'$'\v\004''7'$'\f\005''8'$'\t\a''9'$'\n\b\017''1'$'\r\016''7'$'\021''8'$'\037'' \'\''"<<0::0>>1~'$'\177\200\377'   I can upload a tar with the offending filename. yes, rm -rf removes the dir yes, git clean -xfd removes the dir
          Dan Horák made changes -
          Attachment New: jenkins-clean-bug.tar.gz [ 42173 ]

          Dan Horák added a comment -

          The attached jenkins-clean-bug.tar.gz file contains /var/lib/jenkins/workspace provoking the crash (on a x86_64 system).

          Dan Horák added a comment - The attached jenkins-clean-bug.tar.gz file contains /var/lib/jenkins/workspace provoking the crash (on a x86_64 system).
          Mark Waite made changes -
          Description Original: Jenkins is not able to clean workspace before updating strace git checkout. It crashes with

          {{ }}
          {{ Started by upstream project "[strace]" build number [98]}}
          {{ originally caused by:}}
          {{ Started by an SCM change}}
          {{ Building remotely on }}
          {{ [p8-ppc64le]}}
          {{ (Fedora F27 ppc64le) in workspace /home/jenkins/workspace/strace/label/ppc64le}}
          {{ Cloning the remote Git repository}}
          {{ Cloning repository }}
          {{ [https://github.com/strace/strace.git]}}
          {{ ERROR: Failed to clean the workspace}}
          {{ java.io.IOException: Unable to delete '/home/jenkins/workspace/strace/label/ppc64le'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.}}
          {{ at hudson.Util.deleteContentsRecursive(Util.java:238)}}
          {{ at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)}}
          {{ 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:210)}}
          {{ at hudson.remoting.UserRequest.perform(UserRequest.java:53)}}
          {{ at hudson.remoting.Request$2.run(Request.java:364)}}
          {{ at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)}}
          {{ at java.util.concurrent.FutureTask.run(FutureTask.java:266)}}
          {{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
          {{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
          {{ at java.lang.Thread.run(Thread.java:748)}}
          {{ Caused by: java.io.IOException: Unable to delete /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir - files in dir: [/home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir/078 9}}
          {{ 1}}
          {{ 78 \'"<<0::0>>1~��]}}
          {{ at hudson.Util.tryOnceDeleteFile(Util.java:303)}}
          {{ at hudson.Util.tryOnceDeleteRecursive(Util.java:369)}}
          {{ at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)}}
          {{ at hudson.Util.tryOnceDeleteRecursive(Util.java:368)}}
          {{ at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)}}
          {{ at hudson.Util.deleteContentsRecursive(Util.java:233)}}
          {{ ... 11 more}}
          {{ Caused by: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir}}
          {{ at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)}}
          {{ at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)}}
          {{ at java.nio.file.Files.deleteIfExists(Files.java:1165)}}
          {{ at hudson.Util.tryOnceDeleteFile(Util.java:297)}}
          {{ ... 16 more}}
          {{ ERROR: Error cloning remote repo 'origin'}}
          {{ hudson.plugins.git.GitException: Failed to delete workspace}}
          {{ at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:558)}}
          {{ 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:210)}}
          {{ at hudson.remoting.UserRequest.perform(UserRequest.java:53)}}
          {{ at hudson.remoting.Request$2.run(Request.java:364)}}
          {{ at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)}}
          {{ at java.util.concurrent.FutureTask.run(FutureTask.java:266)}}
          {{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
          {{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
          {{ at java.lang.Thread.run(Thread.java:748)}}
          {{ Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to p8-ppc64le}}
          {{ at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)}}
          {{ at hudson.remoting.UserResponse.retrieve(UserRequest.java:313)}}
          {{ at hudson.remoting.Channel.call(Channel.java:952)}}
          {{ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)}}
          {{ at sun.reflect.GeneratedMethodAccessor821.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:132)}}
          {{ at com.sun.proxy.$Proxy66.execute(Unknown Source)}}
          {{ at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1120)}}
          {{ at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)}}
          {{ at hudson.scm.SCM.checkout(SCM.java:504)}}
          {{ at hudson.model.AbstractProject.checkout(AbstractProject.java:1203)}}
          {{ at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)}}
          {{ at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)}}
          {{ at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)}}
          {{ at hudson.model.Run.execute(Run.java:1727)}}
          {{ at hudson.matrix.MatrixRun.run(MatrixRun.java:146)}}
          {{ at hudson.model.ResourceController.execute(ResourceController.java:97)}}
          {{ at hudson.model.Executor.run(Executor.java:429)}}
          {{ Caused by: java.io.IOException: Unable to delete '/home/jenkins/workspace/strace/label/ppc64le'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.}}
          {{ at hudson.Util.deleteContentsRecursive(Util.java:238)}}
          {{ at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)}}
          {{ ... 10 more}}
          {{ Caused by: java.io.IOException: Unable to delete /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir - files in dir: [/home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir/078 9}}
          {{ 1}}
          {{ 78 \'"<<0::0>>1~��]}}
          {{ at hudson.Util.tryOnceDeleteFile(Util.java:303)}}
          {{ at hudson.Util.tryOnceDeleteRecursive(Util.java:369)}}
          {{ at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)}}
          {{ at hudson.Util.tryOnceDeleteRecursive(Util.java:368)}}
          {{ at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)}}
          {{ at hudson.Util.deleteContentsRecursive(Util.java:233)}}
          {{ ... 11 more}}
          {{ Caused by: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir}}
          {{ at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)}}
          {{ at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)}}
          {{ at java.nio.file.Files.deleteIfExists(Files.java:1165)}}
          {{ at hudson.Util.tryOnceDeleteFile(Util.java:297)}}
          {{ ... 16 more}}
          {{ ERROR: Error cloning remote repo 'origin'}}
          {{ Finished: FAILURE}}

           

          Clearly there is a problem with non-ascii/non-utf8/crazy characters in the filenames created by strace test-suite
          New: Jenkins is not able to clean workspace before updating strace git checkout. It crashes with


          {noformat}
          Started by upstream project "[strace]" build number [98]
          originally caused by:
          Started by an SCM change
          Building remotely on
          [p8-ppc64le]
          (Fedora F27 ppc64le) in workspace /home/jenkins/workspace/strace/label/ppc64le
          Cloning the remote Git repository
          Cloning repository
          [https://github.com/strace/strace.git]
          ERROR: Failed to clean the workspace
          java.io.IOException: Unable to delete '/home/jenkins/workspace/strace/label/ppc64le'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
          at hudson.Util.deleteContentsRecursive(Util.java:238)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)
          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:210)
          at hudson.remoting.UserRequest.perform(UserRequest.java:53)
          at hudson.remoting.Request$2.run(Request.java:364)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          Caused by: java.io.IOException: Unable to delete /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir - files in dir: [/home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir/078 9
          1
          78 \'"<<0::0>>1~��]
          at hudson.Util.tryOnceDeleteFile(Util.java:303)
          at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
          at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)
          at hudson.Util.tryOnceDeleteRecursive(Util.java:368)
          at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)
          at hudson.Util.deleteContentsRecursive(Util.java:233)
          ... 11 more
          Caused by: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir
          at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
          at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
          at java.nio.file.Files.deleteIfExists(Files.java:1165)
          at hudson.Util.tryOnceDeleteFile(Util.java:297)
          ... 16 more
          ERROR: Error cloning remote repo 'origin'
          hudson.plugins.git.GitException: Failed to delete workspace
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:558)
          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:210)
          at hudson.remoting.UserRequest.perform(UserRequest.java:53)
          at hudson.remoting.Request$2.run(Request.java:364)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to p8-ppc64le
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:313)
          at hudson.remoting.Channel.call(Channel.java:952)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          at sun.reflect.GeneratedMethodAccessor821.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:132)
          at com.sun.proxy.$Proxy66.execute(Unknown Source)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1120)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
          at hudson.scm.SCM.checkout(SCM.java:504)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1203)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
          at hudson.model.Run.execute(Run.java:1727)
          at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Caused by: java.io.IOException: Unable to delete '/home/jenkins/workspace/strace/label/ppc64le'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
          at hudson.Util.deleteContentsRecursive(Util.java:238)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)
          ... 10 more
          Caused by: java.io.IOException: Unable to delete /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir - files in dir: [/home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir/078 9
          1
          78 \'"<<0::0>>1~��]
          at hudson.Util.tryOnceDeleteFile(Util.java:303)
          at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
          at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)
          at hudson.Util.tryOnceDeleteRecursive(Util.java:368)
          at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:388)
          at hudson.Util.deleteContentsRecursive(Util.java:233)
          ... 11 more
          Caused by: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/strace/label/ppc64le/tests/fsync-y.dir
          at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
          at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
          at java.nio.file.Files.deleteIfExists(Files.java:1165)
          at hudson.Util.tryOnceDeleteFile(Util.java:297)
          ... 16 more
          ERROR: Error cloning remote repo 'origin'
          Finished: FAILURE
          {noformat}

           

          Clearly there is a problem with non-ascii/non-utf8/crazy characters in the filenames created by strace test-suite

          Eduard Weiss added a comment - - edited

          I have the same problem. Our files have german umlaut in its name.

          Is there are a workaround?

           

          PS:

          I can successfuly remove this files via sh rm

          The Jenkins slave is started with JVM Options -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" and env variable LANG=en_US.UTF-8

          Eduard Weiss added a comment - - edited I have the same problem. Our files have german umlaut in its name. Is there are a workaround?   PS: I can successfuly remove this files via sh rm .  The Jenkins slave is started with JVM Options -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8"  and env variable  LANG=en_US.UTF-8

          I got the same problem after updating Jenkins to the 2.157. Rollback to the 2.155 fixed it for now. 

          Jenkins 2.157

          git-client 2.7.5

          git-plugin 3.9.1

          Cloning the remote Git repositoryCloning the remote Git repositoryCloning repository git@bitbucket.org/repo.gitERROR: Failed to clean the workspacejenkins.util.io.CompositeIOException: Unable to delete '/users/jenkins/core-agent/workspace/Core/Installer Legacy'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Info, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Installer.1.10.0-p10.nupkg, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Installer.nuspec, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Unity2017.4, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Unity2018.1] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution/InstallerSolution] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/.git, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/.gitignore, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/changelog.txt, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/changelog.txt.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Editor, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Editor.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/info.xml, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/info.xml.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.csproj, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.csproj.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.sln, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.sln.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Program.cs, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Program.cs.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Properties, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Properties.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/SolutionConfig.xml, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/SolutionConfig.xml.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/standaloneDebug.sh, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/standaloneDebug.sh.meta] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException: Failed to delete workspace at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:595) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to core-agent at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) at hudson.remoting.Channel.call(Channel.java:957) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) at sun.reflect.GeneratedMethodAccessor422.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:132) at com.sun.proxy.$Proxy80.execute(Unknown Source) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:51) at hudson.security.ACL.impersonate(ACL.java:290) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:48) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ... 4 moreCaused by: jenkins.util.io.CompositeIOException: Unable to delete '/users/jenkins/core-agent/workspace/Core/Installer Legacy'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) ... 10 more
          

          Michał Gliniecki added a comment - I got the same problem after updating Jenkins to the 2.157. Rollback to the 2.155 fixed it for now.  Jenkins 2.157 git-client 2.7.5 git-plugin 3.9.1 Cloning the remote Git repositoryCloning the remote Git repositoryCloning repository git@bitbucket.org/repo.gitERROR: Failed to clean the workspacejenkins.util.io.CompositeIOException: Unable to delete '/users/jenkins/core-agent/workspace/Core/Installer Legacy' . Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Info, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Installer.1.10.0-p10.nupkg, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Installer.nuspec, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Unity2017.4, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll/Unity2018.1] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Dll at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution/InstallerSolution] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Solution at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)jenkins.util.io.CompositeIOException: Unable to remove directory /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source with directory contents: [/users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/.git, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/.gitignore, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/changelog.txt, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/changelog.txt.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Editor, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Editor.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/info.xml, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/info.xml.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.csproj, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.csproj.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.sln, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/InstallerStandalone.sln.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Program.cs, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Program.cs.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Properties, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/Properties.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/SolutionConfig.xml, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/SolutionConfig.xml.meta, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/standaloneDebug.sh, /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source/standaloneDebug.sh.meta] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:233) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:220) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)java.nio.file.DirectoryNotEmptyException: /users/jenkins/core-agent/workspace/Core/Installer Legacy/Source at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:224) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:191) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:201) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:210) at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:81) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748)ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Failed to delete workspace at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:595) 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:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to core-agent at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) at hudson.remoting.Channel.call(Channel.java:957) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) at sun.reflect.GeneratedMethodAccessor422.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:132) at com.sun.proxy.$Proxy80.execute(Unknown Source) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:51) at hudson.security.ACL.impersonate(ACL.java:290) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:48) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ... 4 moreCaused by: jenkins.util.io.CompositeIOException: Unable to delete '/users/jenkins/core-agent/workspace/Core/Installer Legacy' . Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84) at hudson.Util.deleteContentsRecursive(Util.java:244) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:592) ... 10 more

          I had the same issue. A downgrade to 2.156 fixed this.

          Michael Sanders added a comment - I had the same issue. A downgrade to 2.156 fixed this.

            Unassigned Unassigned
            sharkcz Dan Horák
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: