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

copy artifact fails on windows XP slaves due to failing to set a timestamp

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: copyartifact-plugin, core
    • Labels:
      None
    • Environment:
      Windows XP slave. CentOS 5.5 server

      Description

      The copy artifact build step fails when it trys to set the time stamp on windows XP slaves. I have attached the stack trace that shows this error
      "Caused by: java.io.IOException: Failed to set the timestamp of C:\automation\AccuNurse-3.2.0.0-569-upgrade.zip to 1316552260000"

      I believe this issue was caused by the changes made for JENKINS-10805.

      I have also found a discussion of others experiencing the same issue http://groups.google.com/group/jenkinsci-users/browse_thread/thread/249ebeb0660d5e0d/e831b70f5688d0c4?show_docid=e831b70f5688d0c4

        Issue Links

          Activity

          Hide
          ndeloof Nicolas De Loof added a comment -

          https://github.com/jenkinsci/jenkins/pull/509 to expose a public touch() method to optionally ignore windows failure on setLastModified

          Show
          ndeloof Nicolas De Loof added a comment - https://github.com/jenkinsci/jenkins/pull/509 to expose a public touch() method to optionally ignore windows failure on setLastModified
          Hide
          ndeloof Nicolas De Loof added a comment - - edited

          @kutzi FingerprintingCopyMethod#copyOne isn't just about copying file but about copying with fingerprint to avoid duplicating fingerprint computation.
          javadoc excerpt :

          • Performs fingerprinting during the copy.
            *
          • This minimizes the cost of the fingerprinting as the I/O bound nature of the copy operation
          • masks the cost of digest computation.

          This uses copyTo(OutputStream) that has no equivalent for copyToWithPermission. Was introduced by 540a074e1b2209e0079334f93ce4266badc5e653 related to JENKINS-9741
          Maybe just safer to revert.

          Show
          ndeloof Nicolas De Loof added a comment - - edited @kutzi FingerprintingCopyMethod#copyOne isn't just about copying file but about copying with fingerprint to avoid duplicating fingerprint computation. javadoc excerpt : Performs fingerprinting during the copy. * This minimizes the cost of the fingerprinting as the I/O bound nature of the copy operation masks the cost of digest computation. This uses copyTo(OutputStream) that has no equivalent for copyToWithPermission. Was introduced by 540a074e1b2209e0079334f93ce4266badc5e653 related to JENKINS-9741 Maybe just safer to revert.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          I think this is a manifestation of the same issue that caues JENKINS-11251. I claim this change in remoting fixes this. This commit will be a part of 1.473.

          Notice that all the problem reports in this bug is about remoting. Due to the asynchrony in the read/write operations in remoting vs closure calls, it was possible that the attempt to set the timestamp happens before the file is fully is written (or even before the write starts at all.)

          Show
          kohsuke Kohsuke Kawaguchi added a comment - I think this is a manifestation of the same issue that caues JENKINS-11251 . I claim this change in remoting fixes this. This commit will be a part of 1.473. Notice that all the problem reports in this bug is about remoting. Due to the asynchrony in the read/write operations in remoting vs closure calls, it was possible that the attempt to set the timestamp happens before the file is fully is written (or even before the write starts at all.)
          Hide
          munterauer Markus Unterauer added a comment -

          In jenkins v1.474 this problem is still there. Overwriting existing files does not work, writing new files works fine.
          So I use the following workaround: Use a Execute Windows batch command to delete all files before copying.

          Show
          munterauer Markus Unterauer added a comment - In jenkins v1.474 this problem is still there. Overwriting existing files does not work, writing new files works fine. So I use the following workaround: Use a Execute Windows batch command to delete all files before copying.
          Hide
          marnix_klooster Marnix Klooster added a comment - - edited

          For the record: this duplicate of JENKINS-13515 has been resolved in Copy Artifact plugin 1.23/1.24; see the change log for details. And I can confirm that after switching from 1.21 to 1.28, this problem does not arise.

          Show
          marnix_klooster Marnix Klooster added a comment - - edited For the record: this duplicate of JENKINS-13515 has been resolved in Copy Artifact plugin 1.23/1.24; see the change log for details. And I can confirm that after switching from 1.21 to 1.28, this problem does not arise.

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              jkoenig Jeff Koenig
            • Votes:
              20 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: