How to copy multiple files from Artifactory to the cookbook


Im trying to copy the files which are on the artifactory and paste them to the directory on the node.

I can copy single file but cant copy multiple files in a single resource any idea how this can be achieved ?? Help is highly appreciated.

Its a windows environment.


Similar question here, look at the answer: Looping through an array

Basically you'll want to have an array of the filenames, then loop through that array, and within the loop, use your resource to acquire the file from Artifactory.


Thanks Jeff, this seems to be helping.

1 Like