[HAP-978] Placeholder not replaced for uploads when files are symlinked Created: 11/Sep/17  Updated: 27/Sep/17  Resolved: 27/Sep/17

Status: Resolved
Project: Jenkins Artifactory Plug-in
Component/s: None
Affects Version/s: None
Fix Version/s: 2.13.0

Type: Bug Priority: Normal
Reporter: Dima Nevelev (Inactive) Assignee: Dima Nevelev (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
relates to BI-427 Placeholder not replaced for uploads ... Resolved


Placeholder syntax does not work when symlinks are involved.


  "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:


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

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.

Generated at Sun Oct 20 05:51:08 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.