Details

How to find the latest artifact version based on layout?

AuthorFullName__c
Maayan Amrani
articleNumber
000004219
ft:sourceType
Salesforce
FirstPublishedDate
2018-07-25T14:27:16Z
lastModifiedDate
2024-03-10T07:47:19Z
VersionNumber
7

When trying to resolve the latest artifact version using the “Artifact Latest Version Search Based on Layout” REST API call, Artifactory will identify the version according to the configured layout of the repository. Thus, in case the latest desired artifact retrieved is not found, we should verify that the desired artifact follows the repository layout.


In some package types, such as RPM, the client does not enforce a specific layout (unlike the Maven client for example, which imposes the maven-layout).
Thus, there is a need to follow the repository layout when deploying an artifact and then, the REST API call would work as expected.