Reputation: 4348
I am trying to retrieve the latest version of an artifact with the following query
Where :
which is assembled in accordance with the following documentation https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ArtifactLatestVersionSearchBasedonLayout
However, it returns lastest in accordance with the alphabetical order. For example:
The query returns 0.101.2 despite the fact that there is version 0.101.11 already.
Is there any flag/option to retrieve the latest version based on the created date?
Upvotes: 3
Views: 4918
Reputation: 4348
I found answer by myself in documentation:
To change the retrieve latest behavior to retrieve the latest version based on the created date you can add the following flag to
and add the following flag
and restart Artifactory service
Upvotes: 2