2

I have an Artifact path like the following:

%system.teamcity.build.workingDir%\Presentation\obj\Release\Package=>Package.zip

But I need to exclude a folder from "Package", I´ve tried things like:

%system.teamcity.build.workingDir%\Presentation\obj\Release\Package
-:%system.teamcity.build.workingDir%\Presentation\obj\Release\Package\PackageTmp
-:Package\PackageTmp

But nothing seems to work, any ideas ?

Greetings.

luisen
  • 157
  • 2
  • 9

1 Answers1

2

Exclusion patterns are not supported yet for artifact paths. There is an issue in TeamCity tracker requesting this functionality. Please watch/vote.

Additionally, there is this workaround. Have a look, if it fits your needs

Community
  • 1
  • 1
Oleg Rybak
  • 1,651
  • 1
  • 14
  • 27
  • What if I need to select specific files and .zip them ? I mean, I would select them but the folder I don´t need – luisen Mar 25 '14 at 13:17
  • You can define patterns for these files explicitly: ./file1.txt=>archive.zip ./dir1/dir2/file2.exe=>archive.zip such pattern would result in archive.zip being published and containing 'file1.txt' and 'file2.exe' on its top level – Oleg Rybak Mar 25 '14 at 13:24
  • 1
    In TeamCity v10 this has been fixed: https://confluence.jetbrains.com/display/TCD10/Configuring+General+Settings#ConfiguringGeneralSettings-artifactPaths – Max Aug 09 '16 at 07:48