[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 Mon Jun 01 19:20:07 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.