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

 

2 comments

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:

%system.teamcity.build.checkoutDir%/Projectname1/Publish/**=>Projectname1

In this case all files from Publish directory will be published into Projectname1 directory directly.

0

Thanks Alina. Too bad, I'll do it manually for each project then. :-)

0

Please sign in to leave a comment.