Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Download from Artifactory with Artifactory Plugin

V July 6, 2014

On the marketplace-page for the Artifactory Plugin (https://marketplace.atlassian.com/plugins/org.jfrog.bamboo.bamboo-artifactory-plugin) it says that you can upload and download to/from Artifactory with this plugin. However, I can't seem to find the download-functionality. Is there a hidden task for deployment plans which enables artifact download from Artifactory?

3 answers

0 votes
Wahid Atif July 9, 2014

And what does speak against using a simple Maven task with the dependency:get goal?

V July 9, 2014

It doesn't answer my question.

0 votes
Wahid Atif July 8, 2014

The Bamboo Artifactory plugin is supposed to do the job of "maven-release-plugin" + Artifactory integration feature in an elegant way. (See https://www.jfrog.com/confluence/display/RTF/Release+Management)

You can have a "Artifactory download artifact"-task either as mentioned above over the maven-dependency-plugin or through the built-in Bamboo Task "Artifact download" if your artifacts are already produced on the Bamboo machine itself (shared plan artifacts).

V July 9, 2014

The integrated "Artifact download"-Task uses local artifacts which is something we don't want. That's why I tried the Artifactory Plugin.

0 votes
Wahid Atif July 8, 2014

Hi,

I don't know what's your workflow or what output you're expecting. But to download from Artifactory means nothing more than a simple artifact resolution. Once artifacts are on an Artifactory repository you can either resolve them as maven dependencies into your project or in case you want a single artifact (e.g. application packaged as zip or similar) just use the maven-dependenc-plugin, there is a dependency:get goal for this purpose.

http://maven.apache.org/plugins/maven-dependency-plugin/get-mojo.html

V July 8, 2014

Though that would work, it would mean that the Artifactory-plugin doesn't do what it's supposed to do, and I would have to write a custom task for every deployment rather than using the standartized "artifactory download artifact"-task (which unfortunately doesn't exist). So, is it true, that the Artifactory-plugin isn't capable of downloading artifacts from artifactory for deployment-plans?

Shaun Forgie July 10, 2014

I too am interested in this capability as we would like to manage the meta-data about the deployment artefacts in Artifactory so that we can co-ordinate the promotion of an artifact through a number of QA activities occuring in different testing environments on its way into a production environment.

The movement of these artifacts from the build server directly into a target environment is handled by Bamboo via the sharing of artifacts between build stages and deployment plans. What is needed is that deployment plans need to have Artifactory pre-conditions attached to them such that they can query the release suitability of a given as-built artifact from property value critieria. Subsequently triggering a deployment based on rule evaluation. For example a deployment rule into a pre-production environment would ensure all integration testing and user acceptance testing had been successfully conducted before final performance testing was conducted in a specialised load testing environment. The attributes recording these prerequisites results need to be updated and maintained in Artifactory independently of the Bamboo build server.

In terms of the physical location of the artifact it would appear that the deployment of binary artifacts into target environments currently must occur from a Bamboo controlled storage location. What would be ideal is if Bamboo could physically access Artifactory repository co-ordinates via some form of virtual file system interface such that the deployment plans can specifically reference them as files or transfer items. Much in the same way as locally shared artifacts work today.

Wahid Atif July 10, 2014

The plugin is an open-source project from the JFrog guys. You can raise a feature request on https://www.jfrog.com/jira/browse/BAP or even a pull request on GitHub https://github.com/JFrogDev/bamboo-artifactory-plugin.

V July 10, 2014

It's advertised as being able to "Upload to and download from Artifactory" on the Atlassian Marketplace. If it isn't able to do that, they should not make that statement.

Wahid Atif July 10, 2014

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events