views:

1775

answers:

2

Can anyone give me an example of what the Artifact paths setting defined for a build configuration could look like if I want to create two artifacts dist and source where I am using the sln 2008 build runner and building my projects using the default bin/Release?

**/Source/Code/MyProject/bin/Release/*.* => dist
**/*.* => source

I get two artifact roots dist and source but under dist I get the whole directory structure (Source/Code/MyProject/bin/Release) which I don't want and under source I get the whole thing along with obj and bin/Release which I do not want.

Can you give some advice on how to do this correctly?

Do I need to change the target location for all the projects I am building to be able to get this thing to work?

+3  A: 

So you'll just need:

Source\Code\MyProject\bin\Release\* => dist
Source\**\* => source

This will put all the files in release into a artifact folder called dist and everything in Source into a artifact folder called source.

If you have subfolders in Release try:

Source\Code\MyProject\bin\Release\**\* => dist
Scott Cowan
A: 

According to TeamCity documentation; it should be like this:

file_name|directory_name|Ant-like wildcard [ => target_directory ]

So.. Source\Code\MyProject\bin\Release|*** => dist (| not )

I am actually having trouble with this myself at the momment.. Will report back if I have success.