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

Archiving artifacts does not preserve timestamps if archived on master

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Windows 7, Java 1.8, Jenkins 1.575
      Linux 64, Java 1.8, Jenkins 1.647

      When a build run on the master, "Archive the artifacts" doesn't preserve timestamps.
      It preserves timestamps when run on slaves.

      It looks caused by FilePath.copyRecursiveTo.


      Original description (the issue was found not of Copyartifact, but of ArtifactArchiver):

      The timestamps of artifacts are not preserved when archiving artifacts, OR performing a CopyArtifact operation if the artifact filter is set to "**".

      For example the filter

      "myfolder\**"

      will preserve timestamps.

      We use mutiple chained Jenkins jobs to perform a build. If the timestamps of dependency files in the artifact passed between jobs is not preserved, then subsequent jobs will fail.

          [JENKINS-23645] Archiving artifacts does not preserve timestamps if archived on master

          Timmy Brolin created issue -
          Timmy Brolin made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: copyarchiver [ 15676 ]
          Johannes Schmieder made changes -
          Description Original: The timestamps of artifacts are not preserved when archiving artifacts, OR performing a CopyArtifact operation if the artifact filter is set to "**".

          For example the filter "myfolder\**" will preserve timestamps.

          We use mutiple chained Jenkins jobs to perform a build. If the timestamps of dependency files in the artifact passed between jobs is not preserved, then subsequent jobs will fail.
          New: The timestamps of artifacts are not preserved when archiving artifacts, OR performing a CopyArtifact operation if the artifact filter is set to "**".

          For example the filter <code>"myfolder\**"</code> will preserve timestamps.

          We use mutiple chained Jenkins jobs to perform a build. If the timestamps of dependency files in the artifact passed between jobs is not preserved, then subsequent jobs will fail.
          Johannes Schmieder made changes -
          Description Original: The timestamps of artifacts are not preserved when archiving artifacts, OR performing a CopyArtifact operation if the artifact filter is set to "**".

          For example the filter <code>"myfolder\**"</code> will preserve timestamps.

          We use mutiple chained Jenkins jobs to perform a build. If the timestamps of dependency files in the artifact passed between jobs is not preserved, then subsequent jobs will fail.
          New: The timestamps of artifacts are not preserved when archiving artifacts, OR performing a CopyArtifact operation if the artifact filter is set to "**".

          For example the filter {code}"myfolder\**"{code} will preserve timestamps.

          We use mutiple chained Jenkins jobs to perform a build. If the timestamps of dependency files in the artifact passed between jobs is not preserved, then subsequent jobs will fail.
          Daniel Beck made changes -
          Component/s Original: copyartifact [ 15692 ]
          ikedam made changes -
          Assignee Original: Gregory Boissinot [ gbois ]
          Description Original: The timestamps of artifacts are not preserved when archiving artifacts, OR performing a CopyArtifact operation if the artifact filter is set to "**".

          For example the filter {code}"myfolder\**"{code} will preserve timestamps.

          We use mutiple chained Jenkins jobs to perform a build. If the timestamps of dependency files in the artifact passed between jobs is not preserved, then subsequent jobs will fail.
          New: When a build run on the master, "Archive the artifacts" doesn't preserve timestamps.
          It preserves timestamps when run on slaves.

          It looks caused by {{FilePath.copyRecursiveTo}}.

          ----
          Original description (the issue was found not of Copyartifact, but of ArtifactArchiver):

          The timestamps of artifacts are not preserved when archiving artifacts, OR performing a CopyArtifact operation if the artifact filter is set to "**".

          For example the filter {code}"myfolder\**"{code} will preserve timestamps.

          We use mutiple chained Jenkins jobs to perform a build. If the timestamps of dependency files in the artifact passed between jobs is not preserved, then subsequent jobs will fail.
          Environment Original: Windows 7 New: Windows 7, Java 1.8, Jenkins 1.575
          Summary Original: Archiving artifacts does not preserve timestamps if filter is ** New: Archiving artifacts does not preserve timestamps if archived on master
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-13128 [ JENKINS-13128 ]
          Olaf Lenz made changes -
          Environment Original: Windows 7, Java 1.8, Jenkins 1.575 New: Windows 7, Java 1.8, Jenkins 1.575
          Linux 64, Java 1.8, Jenkins 1.647
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 156429 ] New: JNJira + In-Review [ 179272 ]
          Timmy Brolin made changes -
          Link New: This issue is duplicated by JENKINS-31020 [ JENKINS-31020 ]

            Unassigned Unassigned
            tib Timmy Brolin
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: