Jenkins multiple artifacts for the same build Jenkins multiple artifacts for the same build jenkins jenkins

Jenkins multiple artifacts for the same build


You can use Ant-style pattern, e.g. target/*.jar to archive multiple artifacts.

And it is possible to use a comma separated list of patterns if your files can't be matched with one pattern, e.g. target/*.jar, target/*.war.

The ? button next to the input field reveals this info.


You can comma separate the paths, like this:

XXX.UnitTests\bin\Release\**.* , XXX.WriteAPI.Service/bin/Release/**.*

Then you get two separate artifacts.

See http://ant.apache.org/manual/Types/fileset.html for details of the Ant Pattern syntax.


If you want to save two different types of files like zip files and html files, then you can use

*.html,*.zip

It will help you to archive all zip files and html files in that directory.