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

          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.

          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.

          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

          This is not fixed for me. I am copying the file from the workspace, without using an archived artifact.

          Angela Johansson added a comment - This is not fixed for me. I am copying the file from the workspace, without using an archived artifact.

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

              Created:
              Updated:
              Resolved: