0
votes

I have a few versions of my code in JFROG, which are provided to the clients. How do I specify a generic way to pull latest version(Artifact)? It is not Maven code. I looked up on the Jfrog page: ''' GET http://localhost:8081/artifactory/ivy-local/org/acme/[RELEASE]/acme-[RELEASE].jar ''' How do I get [RELEASE] ?

Please help ?

1

1 Answers

0
votes

the [RELEASE] in this case is the version number you want to download the latest artifact for. To get that number you can use the REST API call for Artifact Latest Version Search Based on Layout. For example

GET /api/search/latestVersion?g=org.acme&a=artifact&repos=libs-snapshot-local

This would return a string of the latest release version you have.