Artifact rule to suppress specific folder
Answered
Is there a way to suppress a specific folder in artifact rules?
For example, if I want to get artifacts of all "Publish" folders, but never include that folder itself.
Current artifact rule:
%system.teamcity.build.checkoutDir%/**/Publish/**=>.
Here I want all subfolders and files below "Publish" folders to be included, but if possible not the "Publish" folder itself.
So instead of now
Projectname1
Publish
Directory1
File1.txt
Directory2
File2.text
it should be
Projectname1
Directory1
File1.txt
Directory2
File2.text
Thanks a lot.
--Danny
Please sign in to leave a comment.
Hi Danny,
I think it's not possible. If you have * in the path, then after it the path is published as is. You can use the following rule:
In this case all files from Publish directory will be published into Projectname1 directory directly.
Thanks Alina. Too bad, I'll do it manually for each project then. :-)