Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Download Artifactory artifact using Jenkins and deploy

We have a Jenkins/Maven/Wildfly/Artifactory job that builds and deploys EAR file on wildfly and then in Artifactory.

I'm trying to create another Jenkins manual job that retrieves a specific build from Artifactory and deploys to Wildfly.

How do I tell Jenkins to retrieve artifacts from Artifactory? I'm using 'Copy artifacts from another project'.

Is there a similar plugin that will help me to download artifacts from Artifactory?

Thanks!

like image 783
user5787708 Avatar asked Sep 03 '25 15:09

user5787708


1 Answers

The artifactory plugin for Jenkins has the option to "resolve" artifacts, i.e. download them from Artifactory.

This may require the Pro version of Artifactory though.

To configure it:

  • install the plugin (https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin)
  • on the job configuration page, enable "Generic Artifactory Integration".
  • go to "Resolved Artifacts" and enter the artifacts to resolve/download - the question-mark icon on that page will tell you more about the syntax.
like image 70
tarantoga Avatar answered Sep 05 '25 04:09

tarantoga