Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity: Adding additional logs to artifacts zip file

In TeamCity, it is possible to specify the 'Artifact Paths' so that all files and folders from a directory can be added to a Zip file:

E:\Logs\**\* => Logs.zip

However, I would like to add additional log files to a sub folder within the zip file. Is it possible to do this without an additional build step to move/copy the files? For example:

E:\Logs\**\* => Logs.zip
D:\ThirdParty\Logs\*.txt => Logs.zip\ThirdParty\ 
like image 888
Dech Avatar asked Jan 30 '17 13:01

Dech


People also ask

What is artifact dependency?

The Artifact Dependency Graph (ADG) of an artifact is the recursive DAG (Directed Acyclic Graph) of all the input artifacts that are transformed by a build tool into that artifact. It includes the direct input artifacts, and the recursive set of artifacts to each input artifact, all the way down to source code.

What is artifact path in TeamCity?

Artifact Paths Build artifacts are files produced by the build which are stored on TeamCity server and can be downloaded from the TeamCity UI or used as artifact dependencies by other builds.


1 Answers

It is possible to specify the path inside a zip when you are creating an artefact

You just need to set a ! after the extension, in order to indicate that the content will be put inside.

/logs/*.log => Logs.zip
/out/*.txt => Logs.zip!/ThirdParty
like image 149
Didier Aupest Avatar answered Oct 03 '22 04:10

Didier Aupest