Download Artifacts at Folder level

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Download Artifacts at Folder level

max1234
We plan to use artifactory to store all our build artifacts/packages. Each package will have a build or version id which will be used for its identification.

I have seen a few examples on the web and also on the artifactory site examples of uploading files at a folder level.

However is there a way to download artifacts at a folder level. For examples if the artifacts are stored as ProjectA/Client/v1.1/... The system knows which version it would like to download but not the contents and so is there a way to specify the path to the version folder and be able to download all its content.
Reply | Threaded
Open this post in threaded view
|

Re: Download Artifacts at Folder level

max1234
Sorry missed out on adding that we are using artifactory pro and would like to carry out this task on commandline both on unix and windows if possible.
Reply | Threaded
Open this post in threaded view
|

Re: Download Artifacts at Folder level

schisamo
You should be able to do this with wget (there is also a Windows version). For example here at Chef Software, Inc. we could download all the packages for the 0.3.76 release of our Delivery product like this:

wget -r --no-parent -nH --cut-dirs=4 --reject "index.html*" http://artifactory.chef.co/simple/omnibus-stable-local/com/getchef/delivery/0.3.76/

Hope that helps!

--Seth

On Mon, Jun 8, 2015 at 5:22 PM, max1234 <[hidden email]> wrote:
Sorry missed out on adding that we are using artifactory pro and would like
to carry out this task on commandline both on unix and windows if possible.



--
View this message in context: http://forums.jfrog.org/Download-Artifacts-at-Folder-level-tp7580328p7580329.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Download Artifacts at Folder level

eranbl
Hi Max,

Actually, there might be a more convenient way to achieve this.
It looks  like this user plugin is tailored to your needs:

https://github.com/JFrogDev/artifactory-user-plugins/blob/bc19a4d5e2ba5b4b8e27ac7eeb592d202a07f90d/download/downloadDirectoryContent.groovy

Eran

On Wed, Jun 10, 2015 at 4:53 PM, Seth Chisamore <[hidden email]> wrote:
You should be able to do this with wget (there is also a Windows version). For example here at Chef Software, Inc. we could download all the packages for the 0.3.76 release of our Delivery product like this:

wget -r --no-parent -nH --cut-dirs=4 --reject "index.html*" http://artifactory.chef.co/simple/omnibus-stable-local/com/getchef/delivery/0.3.76/

Hope that helps!

--Seth

On Mon, Jun 8, 2015 at 5:22 PM, max1234 <[hidden email]> wrote:
Sorry missed out on adding that we are using artifactory pro and would like
to carry out this task on commandline both on unix and windows if possible.



--
View this message in context: http://forums.jfrog.org/Download-Artifacts-at-Folder-level-tp7580328p7580329.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users