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

CopyArtifact plugin should preserve executable bits

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • copyartifact-plugin
    • None

      It seems when artifacts are copied from another build using the plugin, the executable bits are not preserved. It's possible other permissions also do not persist, but I haven't verified this.

          [JENKINS-8140] CopyArtifact plugin should preserve executable bits

          Kamil Kisiel created issue -

          Alan Harder added a comment -

          Not sure I can do anything about this.. not even sure if files in the archived artifacts area maintain permissions from the original file.

          Alan Harder added a comment - Not sure I can do anything about this.. not even sure if files in the archived artifacts area maintain permissions from the original file.
          Alan Harder made changes -
          Assignee Original: Alan Harder [ mindless ]
          Alan Harder made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]
          Summary Original: CopyArtifact plugin doesn't preserve executable bits New: CopyArtifact plugin should preserve executable bits

          Kamil Kisiel added a comment -

          Sorry if this isn't the right component to file it in, I'm not too familiar with the architecture of Hudson. The CopyArtifact plugin is the only thing I've used artifacts for at this point, so if the bug is elsewhere I guess the enhancement should be filed against that.

          Kamil Kisiel added a comment - Sorry if this isn't the right component to file it in, I'm not too familiar with the architecture of Hudson. The CopyArtifact plugin is the only thing I've used artifacts for at this point, so if the bug is elsewhere I guess the enhancement should be filed against that.
          Andrew Bayer made changes -
          Link New: This issue depends on JENKINS-9397 [ JENKINS-9397 ]

          Alan Harder added a comment -

          Alan Harder added a comment - Could be related: https://github.com/jenkinsci/jenkins/pull/97

          Andrew Bayer added a comment -

          Assuming copyartifact is using the FilePath tar/zip logic, yeah, that pull request should theoretically fix this. I'm just not 100% confident in my code, which is why I did it as a pull request for others to review. =)

          Andrew Bayer added a comment - Assuming copyartifact is using the FilePath tar/zip logic, yeah, that pull request should theoretically fix this. I'm just not 100% confident in my code, which is why I did it as a pull request for others to review. =)

          Fixed by JENKINS-9397

          Kohsuke Kawaguchi added a comment - Fixed by JENKINS-9397
          Kohsuke Kawaguchi made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            kisielk Kamil Kisiel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: