What's the correct wildcard syntax to copy TeamCity artifacts to the root of a destination path?

Troy Hunt picture Troy Hunt · Mar 5, 2011 · Viewed 8.5k times · Source

I'm having a small drama with the wildcard syntax in my TeamCity artifact configuration. I want to grab every file matching the pattern myproject.*.dll from any folder and place each DLL in the root of the artifacts path.

Here's what I've got at present:

**/obj/Debug/myproject.*.dll => /

This is grabbing all the DLLs but it's putting them inside the same folder structure as the source so rather than ending up with "myproject.web.dll" in the artifacts I get "Web/obj/debug/myproject.web.dll".

What am I missing here?

Answer

KIR picture KIR · Mar 5, 2011

I'm afraid you cannot do this in an easy way. You should collect your *.dll locally to a single place, and than use TeamCity's artifacts rule to copy all of them to root directory.

Or, you can enter all paths manually (without ** part)

This is how it works in TC.