How to copy multiple files from Artifactory to the cookbook

#1

Hi,
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.

#2

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.

#3

Thanks Jeff, this seems to be helping.

1 Like