Hi,
We have a build record and associated artifacts that are in
libs-snapshot-local, and called "1.0.0-SNAPSHOT.jar". We like it, and would
like to promote it to libs-snapshot-release.
When using either the Jenkins plugin or the REST API, I get an error
regarding the snapshot policy on the destination repository. This is the
curl command I am using.
curl -X POST -f -u ${USERNAME}:${PASSWORD} -H "Content-Type:
application/json" -d
"{"status":"${STATUS_MESSAGE}","ciUser":"${USERNAME}","targetRepo":"libs-release-local","dryRun":true}"
"http://${ARTIFACTORY_URL}/artifactory/api/build/promote/${PROJECT}/${BUILDNUMBER}"
I am assuming that, because the jar is named
"${PROJECTNAME}-1.0.0-SNAPSHOT.jar, that Artifactory is (rightfully)
assuming it's a snapshot.
Is there a way to convert a build from a snapshot to a release candidate
when promoting?
I could download, rename, and upload the jar, but if I did that how could I
preserve the metadata (links back to Jenkins, etc.) or indicate in the build
record that the project had been promoted? (Would i have to manually create
a new build record as well?)
Based on the REST API documentation, if I omit the targetRepo, I'm assuming
the jar would remain in the libs-snapshot-local repository - what is the
point to promotion in this case. Would it still be treated like a snapshot
with regard to retention/deletion rules?
Thanks,
Dave P.
--
View this message in context:
http://forums.jfrog.org/Promoting-1-0-0-SNAPSHOT-to-Release-tp7580293.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users