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

3k views Asked by At

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)

2

There are 2 answers

1
Mohammad Tibi On

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

0
error404 On

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.