Uploaded image for project: 'Build Info'
  1. Build Info
  2. BI-427

Placeholder not replaced for uploads when files are symlinked

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: 2.9.1
    • Component/s: None
    • Labels:
      None

      Description

      Placeholder syntax does not work when symlinks are involved.

      Spec:

      {
        "files": [{
          "pattern": "service-images/*-docker-image-(*).tar.gz",
          "target": "my-docker/{1}/
        }]
      }
      

      Where `service-images` is a symlink to another folder.
      In the logs I see

      For pattern:

      service-images/*-docker-image-(*).tar.gz
      

      1 artifacts were found.
      Deploying artifact: https://<removed>/artifactory/my-docker/

      {1}/<hash>-docker-image-foo.tar.gz
      The file that gets uploaded to Artifactory is indeed the file I expect, I just expect the {1}

      to be replaced with `foo`. It looks like it's happy with the symlink when pattern matching but not when it goes to replace the placeholder which seems weird, if anything I would expect it to just break on the pattern matching.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                diman Dima Nevelev (Inactive)
                Reporter:
                diman Dima Nevelev (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: