jenkins archive artifacts - what's the format?

K Richard Pixley picture K Richard Pixley · Nov 14, 2016 · Viewed 30k times · Source

I can't seem to figure out how to use the basic archive artifacts statement. What I want is to archive an entire subtree but naming it doesn't seem to work. Nor does directory/** nor directory/**/

I've read the ant doc but it doesn't make much sense to me.

How do I specify a subtree? Or... where can I find a meaningful description of whatever goes in that field?

Answer

Dvir669 picture Dvir669 · Nov 15, 2016

Directory/**/*.* -> All the files recursively under Directory

**/*.* -> all the files in the workspace

**/*.xml -> all xml files in your workspace.

Directory/**/*.xml -> All the xml files recursively under Directory