问题
Is there any automated way to get artifact download URL back ?
I'm working with maven projects , I use bamboo for build automation.
After successful Build completion, artifacts will be pushed Jfrog artifactory.
My requirement here is to get the artifact download URL back in an automated way(Using bamboo Plugins, Rest API, Jfrog CLI, Maven or any other)
回答1:
You can use the Build Artifacts Search REST API endpoint. You will need to send the build name + number in the JSON, Artifactory will return the Download URI's for the build artifacts
回答2:
I have used jenkins with artifactory and with every successful build a buildinfo.json is published to the artifactory. the buildinfo json is a meta data file. You can pass the build no. you get parse the buildinfo json for the download url of the artifacts.
Worth a try since you are using the open source version.
来源:https://stackoverflow.com/questions/53105679/is-there-any-automated-way-to-get-artifact-download-url-back-from-artifactory