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

Archive the artifacts does not preserve file exec permissions

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None
    • Ubuntu 12.04 64 bit

      Files saved via the "Archive the artifacts" mechanism lose their file access bits.

      In the workspace, the file is:
      -rwxr-xr-x 1 jenkins nogroup 577 2012-06-30 09:23 XXtool

      in the archive dir, it shows up as:
      -rw-r--r-- 1 jenkins nogroup 577 2012-06-30 09:32 XXtool

      There's no way that I can see to preserve the file permissions.

          [JENKINS-14269] Archive the artifacts does not preserve file exec permissions

          It seems to be not an issue of the Arifactdeployer Jenkins plugin.
          For the ArtifactDeployer plugin, the entry point is "[ArtifactDeployer] - Deploy artifacts from workspace to remote directories".

          Gregory Boissinot added a comment - It seems to be not an issue of the Arifactdeployer Jenkins plugin. For the ArtifactDeployer plugin, the entry point is " [ArtifactDeployer] - Deploy artifacts from workspace to remote directories".

          a bc added a comment -

          Also happens on Mac 10.8 and jenkins 1.516.
          And I think it is such a common requirement.

          a bc added a comment - Also happens on Mac 10.8 and jenkins 1.516. And I think it is such a common requirement.

          Daniel Beck added a comment -

          workaround: Just tar the files before archiving.

          Daniel Beck added a comment - workaround: Just tar the files before archiving.

          Chris Miller added a comment -

          Having the same problem here... :-/

          Chris Miller added a comment - Having the same problem here... :-/

          Andreas Hindborg added a comment - I have uploaded a possible fix for this issue at https://github.com/metaspace/jenkins/commit/87a49efa0bdc99844455461db7db86fe3546e5e2

          A. Klitzing added a comment -

          Any progress here? Can the fix be included?

          A. Klitzing added a comment - Any progress here? Can the fix be included?

          It was rejected. A new try is here https://github.com/jenkinsci/jenkins/pull/1576 . But it seems like this patch also needs some work.

          Andreas Hindborg added a comment - It was rejected. A new try is here https://github.com/jenkinsci/jenkins/pull/1576 . But it seems like this patch also needs some work.

          Any chance of a fix to this issue?

          Andrew Barnish added a comment - Any chance of a fix to this issue?

          Daniel Beck added a comment -

          Considering this a duplicate of JENKINS-13128, as that's more comprehensive.

          Daniel Beck added a comment - Considering this a duplicate of JENKINS-13128 , as that's more comprehensive.

            gbois Gregory Boissinot
            bedge Bruce Edge
            Votes:
            13 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: