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

PosixException thrown while changing file mode

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/hudson/plugins/copyartifact/FingerprintingCopyMethod.java
            http://jenkins-ci.org/commit/copyartifact-plugin/0e3f0dfc7631424b7bca922a697fd7da071e097f
            Log:
            [FIXED JENKINS-15726] Attempting to recover gracefully when upstream file exists but cannot be statted .

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/plugins/copyartifact/FingerprintingCopyMethod.java http://jenkins-ci.org/commit/copyartifact-plugin/0e3f0dfc7631424b7bca922a697fd7da071e097f Log: [FIXED JENKINS-15726] Attempting to recover gracefully when upstream file exists but cannot be statted .

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: