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

PosixException thrown while changing file mode

XMLWordPrintable

      A user previously encountering JENKINS-14962 now reported an exception:

      hudson.os.PosixException: /…JENKINS_HOME…/jobs/…/builds/…/archive/…path… ENOENT 
      at hudson.os.PosixAPI$1.error(PosixAPI.java:43) 
      at org.jruby.ext.posix.LinuxPOSIX.stat(LinuxPOSIX.java:89) 
      at hudson.util.IOUtils.mode(IOUtils.java:125) 
      at hudson.FilePath$24.invoke(FilePath.java:1369) 
      at hudson.FilePath$24.invoke(FilePath.java:1367) 
      at hudson.FilePath.act(FilePath.java:851) 
      at hudson.FilePath.act(FilePath.java:824) 
      at hudson.FilePath.mode(FilePath.java:1367) 
      at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79) 
      at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:64) 
      at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) 
      at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215)
      

      Not clear what the cause is, since this call to FilePath.mode follows the actual copying of the file, which presumably succeeded. Nonetheless, can at least catch this exception and just log it, since changing file mode is not critical.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: