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

Workspace cleanup fails when trying to delete files with ? in name.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ws-cleanup-plugin
    • None
    • java.runtime.name Java(TM) SE Runtime Environment
      java.runtime.version 1.8.0_51-b16
      os.arch i386
      os.name Linux
      os.version 3.14.56-3.14.5.1-amd64-16568286

      Hi,

      ws-cleanup fails on files unpacked from boost library. Reason is probably that character represented by ??

      Mar 10, 2016 9:38:27 AM hudson.plugins.ws_cleanup.Wipeout$Command invoke
      SEVERE: Unable to delete workspace
      java.io.IOException: java.lang.reflect.InvocationTargetException
      at hudson.Util.isSymlinkJava7(Util.java:377)
      at hudson.Util.isSymlink(Util.java:342)
      at hudson.Util.deleteRecursive(Util.java:308)
      at hudson.Util.deleteContentsRecursive(Util.java:220)
      at hudson.Util.deleteRecursive(Util.java:309)
      at hudson.Util.deleteContentsRecursive(Util.java:220)
      at hudson.Util.deleteRecursive(Util.java:309)
      at hudson.Util.deleteContentsRecursive(Util.java:220)
      at hudson.Util.deleteRecursive(Util.java:309)
      at hudson.Util.deleteContentsRecursive(Util.java:220)
      at hudson.Util.deleteRecursive(Util.java:309)
      at hudson.Util.deleteContentsRecursive(Util.java:220)
      at hudson.Util.deleteRecursive(Util.java:309)
      at hudson.Util.deleteContentsRecursive(Util.java:220)
      at hudson.Util.deleteRecursive(Util.java:309)
      at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:73)
      at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:70)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719)
      at hudson.remoting.LocalChannel$1.call(LocalChannel.java:52)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at hudson.Util.isSymlinkJava7(Util.java:372)
      ... 23 more
      Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /jenkins/jobs/QUIC_DEV/workspace_ws-cleanup_1457602706659/boost/boost_1_59_0/libs/preprocessor/doc/Appendix A ?? An Introduction to Preprocessor Metaprogramming.html
      at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
      at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
      at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
      at java.io.File.toPath(File.java:2234)
      ... 27 more

      ls -lah:
      jenkins/jobs/QUIC_DEV/workspace_ws-cleanup_1457602706659/boost/boost_1_59_0/libs/preprocessor/doc# ls -lah
      total 248K
      drwxr-xr-x 8 jenkins jenkins 4.0K Mar 10 09:38 .
      drwxr-xr-x 3 jenkins jenkins 4.0K Mar 10 09:38 ..
      rw-rr- 1 jenkins jenkins 127K Jul 17 2015 Appendix A ?? An Introduction to Preprocessor Metaprogramming.html
      rw-rr- 1 jenkins jenkins 2.2K Jul 17 2015 acknowledgements.html
      rw-rr- 1 jenkins jenkins 2.0K Jul 17 2015 bibliography.html
      rw-rr- 1 jenkins jenkins 1.4K Jul 17 2015 contents.html

            olivergondza Oliver Gondža
            okunc Ondrej Kunc
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: