File Specs offer enormous flexibility in how you upload, or download files through use of wildcard or regular expressions with placeholders.
Any wildcard enclosed in parenthesis in the pattern property can be matched with a corresponding placeholder in the target property to determine the name of the artifact once downloaded or uploaded. The following example downloads all zip files, located under the root path of the my-local-repo
repository, which include a dash in their name. The files are renamed when they are downloaded, replacing the dash with two dashes.
{ "files": [ { "pattern": "my-local-repo/(*)-(*).zip", "target": "froggy/{1}--{2}.zip", "recursive": "false" } ] }