Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins archive artifacts - what's the format?

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?

like image 440
K Richard Pixley Avatar asked Nov 14 '16 20:11

K Richard Pixley


People also ask

How do I archive artifacts in Jenkins?

Go to your client project and select configure. Create a post-build action and select 'archive artififacts' from the drop down menu. Add the type of files you want to archive (and eventually, copy and export).

Where does Jenkins archive artifacts?

Normally, Jenkins keeps artifacts for a build as long as a build log itself is kept, but if you don't need old artifacts and would rather save disk space, you can do so. Note that the Maven job type automatically archives any produced Maven artifacts. Any artifacts configured here will be archived on top of that.

What is an artifact archive?

a library or archival resource that has value as a physical object in addition to its informational value (View Citations) Frequently, however, discussions of these developments imply that, once reproductions exist, many of the artifacts from which they derive need no longer be consulted or saved.


1 Answers

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

like image 165
Dvir669 Avatar answered Sep 27 '22 16:09

Dvir669