Is there any automated way to get artifact download URL back from artifactory?

佐手、 提交于 2019-12-11 17:49:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!