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

Archive the artifacts does not preserve file exec permissions

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate
    • core
    • None
    • Ubuntu 12.04 64 bit

    Description

      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.

      Attachments

        Issue Links

          Activity

            bedge Bruce Edge created issue -

            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".

            gbois 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".
            gbois Gregory Boissinot made changes -
            Field Original Value New Value
            Component/s core [ 15593 ]
            Component/s artifactdeployer [ 15870 ]
            qwert a bc added a comment -

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

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

            workaround: Just tar the files before archiving.

            danielbeck Daniel Beck added a comment - workaround: Just tar the files before archiving.
            ee99ee Chris Miller added a comment -

            Having the same problem here... :-/

            ee99ee Chris Miller added a comment - Having the same problem here... :-/
            ikedam ikedam made changes -
            Link This issue is related to JENKINS-9741 [ JENKINS-9741 ]
            andreas1337 Andreas Hindborg added a comment - I have uploaded a possible fix for this issue at https://github.com/metaspace/jenkins/commit/87a49efa0bdc99844455461db7db86fe3546e5e2
            misery A. Klitzing added a comment -

            Any progress here? Can the fix be included?

            misery 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.

            andreas1337 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?

            barnish Andrew Barnish added a comment - Any chance of a fix to this issue?
            epyle Eric Pyle made changes -
            Description 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.
            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.
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 144901 ] JNJira + In-Review [ 176221 ]
            danielbeck Daniel Beck added a comment -

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

            danielbeck Daniel Beck added a comment - Considering this a duplicate of JENKINS-13128 , as that's more comprehensive.
            danielbeck Daniel Beck made changes -
            Link This issue duplicates JENKINS-13128 [ JENKINS-13128 ]
            danielbeck Daniel Beck made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: