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

Preserve symlinks when copying artifacts

    XMLWordPrintable

Details

    Description

      When copying artifact using the Copy Artifact plugin, symlinks are replaced by the referred files or directory.

      It would be nice to have an option to preserve symlinks when copying artifacts.

      Attachments

        Issue Links

          Activity

            renwei Wei Ren added a comment -

            Thank ikedam for the info. I will paste my issue there.

            renwei Wei Ren added a comment - Thank ikedam for the info. I will paste my issue there.
            ikedam ikedam added a comment -

            renwei
            Your problem sounds rather link JENKINS-32832.
            Please check that.

            ikedam ikedam added a comment - renwei Your problem sounds rather link JENKINS-32832 . Please check that.
            renwei Wei Ren added a comment -

            I am still seeing this issue on my two jenkins sites. One jenkins setup is Jenkins 1.651.3 + Copy Artifact Plugin 1.38, and the other jenkins setup is Jenkins 2.7.1 + Copy Aritifact Plugin 1.38. The OS of both setups is Ubuntu 14.04 LTS.

            Below are repro steps:
            1. One project P1 archives one file plus one symlink as its build artifacts like:
            directory1/file1, directory2/symlink2 where symlink2 is a link to ../directory1/file1.

            2. Another project P2 copies P1's artifacts to its workspace at the beginning of its build.

            Expected: both file1 and symlink2 are copied to P2's workspace.

            Actual: only file1 is copied to P2's workspace.

            Please let me know if you need more information.

            renwei Wei Ren added a comment - I am still seeing this issue on my two jenkins sites. One jenkins setup is Jenkins 1.651.3 + Copy Artifact Plugin 1.38, and the other jenkins setup is Jenkins 2.7.1 + Copy Aritifact Plugin 1.38. The OS of both setups is Ubuntu 14.04 LTS. Below are repro steps: 1. One project P1 archives one file plus one symlink as its build artifacts like: directory1/file1, directory2/symlink2 where symlink2 is a link to ../directory1/file1. 2. Another project P2 copies P1's artifacts to its workspace at the beginning of its build. Expected: both file1 and symlink2 are copied to P2's workspace. Actual: only file1 is copied to P2's workspace. Please let me know if you need more information.
            panjinjing Jinjing Pan added a comment -

            My problem is not related with this plugin. Sorry for reopening.

            panjinjing Jinjing Pan added a comment - My problem is not related with this plugin. Sorry for reopening.
            ikedam ikedam added a comment -

            panjinjing
            Please report more details (e.g. environments, steps to reproduce the problem).

            ikedam ikedam added a comment - panjinjing Please report more details (e.g. environments, steps to reproduce the problem).

            People

              jglick Jesse Glick
              pbuyle pbuyle
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: