Artifacts path and target archive compress problem

Hello,

Is there a way to tell TeamCity to compress a folder content along with the root folder in the Artifacts Path of the General Settings tab?
My file system structure looks as follow:

%system.teamcity.build.checkoutDir%\Build\Output\A
%system.teamcity.build.checkoutDir%\Build\Output\B
%system.teamcity.build.checkoutDir%\Build\Output\C

I want to compress e.g. folder A and its content, however, when i use syntax

%system.teamcity.build.checkoutDir%\Build\Output\A => A.zip

content is compressed but the root folder ("A") is missing in the archive. I want to have folder "A" and its content compressed.

Optionally, I could use
%system.teamcity.build.checkoutDir%\Build\Output and exclude B and C. Is the exclusion supported?

Regards!

2 comments
Comment actions Permalink

Hi

You can use syntax like

Build\Output\A => A.zip!/A/



Michael
0
Comment actions Permalink

It works, thanks!

0

Please sign in to leave a comment.