41

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?

Guy Avraham
  • 3,482
  • 3
  • 38
  • 50
K Richard Pixley
  • 617
  • 1
  • 6
  • 10

2 Answers2

99

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

Dvir669
  • 6,577
  • 1
  • 20
  • 21
0

Example:

archiveArtifacts 'test-results//, dir1//dir2//*'

Mohit
  • 807
  • 9
  • 11