2

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!

ρяσѕρєя K
  • 130,641
  • 51
  • 193
  • 212
user5787708
  • 99
  • 1
  • 2
  • 4

1 Answers1

4

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:

tarantoga
  • 1,056
  • 9
  • 19
  • Thanks! You are correct it requires the Pro version which is paid. Is there any other way to achieve it? – user5787708 Jan 14 '16 at 05:37
  • 2
    If you know your artifacts's URL, you can use curl or wget to download it directly in a shell build step. What I did is create a Python script that uses Artifactory's REST API to query and download the artifacts I need, and then I call that script from a shell build step. – tarantoga Jan 14 '16 at 07:14
  • @tarantoga , can you please share your python script , i require something like this for my project. – goldy021 Mar 16 '17 at 19:59
  • looking for the same script. in Artifactory, there are bunch of snapshots, how to get the latest snapshot and the latest publication in the snapshot? – koo9 Jun 05 '17 at 16:17