[HAP-865] Add to file spec the ability to download artifact by build name and number Created: 27/Dec/16  Updated: 08/Jul/17  Resolved: 18/Jan/17

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

Type: New Feature Priority: High
Reporter: Eyal Ben Moshe (Inactive) Assignee: Eyal Ben Moshe (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Dependency
depends on BI-393 Add to file spec the ability to downl... Resolved

 Description   

This issue is oped to track the following feature, added to the build-info project:
https://www.jfrog.com/jira/browse/BI-393



 Comments   
Comment by Dima Nevelev (Inactive) [ 22/Jan/17 ]

New flag can be set in the download specs:
it should be set as following: "build":"buildName/buildNumber" (slash as a delimiter).
The buildNumber can be "LATEST" or "LAST_RELEASE".
Build number is optional. If no build number provided (case of "build":"buildName") the latest build will be downloaded.
If the build number contains slashes, backslash must be added as escape char

("build":"buildName/123\/4" will download the build number "123/4")

If the build name contains slashes, build number becomes mandatory.

Comment by Mike Delaney [ 07/Jul/17 ]

Are there any examples on how to do this?

Comment by Eyal Ben Moshe [ 08/Jul/17 ]

Michael,
Here's a link to the File Specs documentation page:
https://www.jfrog.com/confluence/display/RTF/Using+File+Specs
The build property value format is build-name/build-number
Let me know if you need further help with this.

Generated at Sat Jul 20 03:19:11 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.