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.

          [JENKINS-20546] Preserve symlinks when copying artifacts

          This is still broken in 1.36.1 if fingerprinting of artifacts is not enabled.

          Slawomir Czarko added a comment - This is still broken in 1.36.1 if fingerprinting of artifacts is not enabled.

          Jesse Glick added a comment -

          So enable it. You can file a separate RFE for the other copy method.

          Jesse Glick added a comment - So enable it. You can file a separate RFE for the other copy method.

          ikedam added a comment -

          Just unchecking "Fingerprint Artifacts" should never affect handling symlinks.
          It looks another issue, and please create a new ticket with details, such as environments, steps to reproduce and console outputs.

          ikedam added a comment - Just unchecking "Fingerprint Artifacts" should never affect handling symlinks. It looks another issue, and please create a new ticket with details, such as environments, steps to reproduce and console outputs.

          jglick ikedam
          Sorry for reopening the bug. My problem turned out to have nothing to do with Copy Artifacts Plugin.

          Slawomir Czarko added a comment - jglick ikedam Sorry for reopening the bug. My problem turned out to have nothing to do with Copy Artifacts Plugin.

          Jinjing Pan added a comment -

          This issue is not resolved in Copy Artifact Plugin 1.37. Symlink are not copied.

          Jinjing Pan added a comment - This issue is not resolved in Copy Artifact Plugin 1.37. Symlink are not copied.

          ikedam added a comment -

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

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

          Jinjing Pan added a comment -

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

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

          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.

          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.

          ikedam added a comment -

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

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

          Wei Ren added a comment -

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

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

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

              Created:
              Updated:
              Resolved: