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

copyRemoteArtifact flattens directory if only 1 file chosen to copy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • CloudBees Jenkins Enterprise 2.73.32.0.1-fixed
      Operations Center Plugin 2.73.0.2

      The following command works fine, without flattening directory of copied artifacts:

      copyRemoteArtifacts from: 'jenkins://<redacted>/test-job', includes: 'folder/file.txt,folder/file2.txt'

      The remote files are copied as 'folder/file.txt' and 'folder/file2.txt' as expected.

      However, if I just copy 1 file as such:

       copyRemoteArtifacts from: 'jenkins://<redacted>/test-job', includes: 'folder/file.txt'

      The copied file does not have the directory anymore, and is copied as 'file.txt' instead of 'folder/file.txt'.

            Unassigned Unassigned
            taylorp36 Taylor Patton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: