Retrieve Latest Artifact via API and custom layout

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Retrieve Latest Artifact via API and custom layout

pscheir
Hi,

I have a custom repository layout and I cant get Retrieve Latest Artifact to work with placeholders anymore.

This is the Artifact Path Pattern: "[orgPath]/[module]/[baseRev](-[folderItegRev])(/[build<[a-zA-Z0-9._]*>])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]"

Folder and File Integration Revision RegExp are both "SNAPSHOT|[^-/]*"

I upload with the following command line:

curl --user u:p --upload-file aaa.zip http://yyy:8081/artifactory/simple/repo-snapshot/DataProcessing/DataManager/1.0-SNAPSHOT/aa/DataManager-1.0-build3.zip
curl --user u:p --upload-file aaa.zip http://yyy:8081/artifactory/simple/repo-snapshot/DataProcessing/DataManager/1.0-SNAPSHOT/aa/DataManager-1.0-build4.zip
curl --user u:p --upload-file aaa.zip http://yyy:8081/artifactory/simple/repo-snapshot/DataProcessing/DataManager/1.0-SNAPSHOT/aa/DataManager-1.0-build5.zip
curl --user u:p --upload-file aaa.zip http://yyy:8081/artifactory/simple/repo-snapshot/DataProcessing/DataManager/1.0-SNAPSHOT/aa/DataManager-1.0-build6.zip
curl --user u:p --upload-file aaa.zip http://yyy:8081/artifactory/simple/repo-snapshot/DataProcessing/DataManager/1.0-SNAPSHOT/aa/DataManager-1.0-build7.zip
curl --user u:p --upload-file aaa.zip http://yyy:8081/artifactory/simple/repo-snapshot/DataProcessing/DataManager/1.0-SNAPSHOT/aa/DataManager-1.0-build8.zip
curl --user u:p --upload-file aaa.zip http://yyy:8081/artifactory/simple/repo-snapshot/DataProcessing/DataManager/1.0-SNAPSHOT/aa/DataManager-1.0-build9.zip

The path is parsed correctly under "Test Artifact Path Resolution".

The following request returns "404 - File not found": http://yyy:8081/artifactory/simple/repo-snapshot/DataProcessing/DataManager/1.0-[INTEGRATION]/aa/DataManager-1.0-[INTEGRATION].zip

Thank you!
Peter

Reply | Threaded
Open this post in threaded view
|

Re: Retrieve Latest Artifact via API and custom layout

Ariel
Hi Peter,

The issue looks like a bug in the way that custom layout with a custom token breaks the version search.

There is a Jira ticket on that issue.

Ariel.