Dynamic Artifact Names - Are They Supported?


I'm new to TeamCity, so I hope this isn't too basic a question. I have some artifacts whose names incorporate the build number. Can I specify non-static artifact path names by inserting a symbolic place holder for build-number (e.g. NCoverClassReport-{build.number}.html).? If dynamic artifact names cannot be specified, can anyone suggest an alternate way to support variable artifact file names?

Thank you in advance for your help.


Edited by: ED on Jun 2, 2008 11:34 PM

Comment actions Permalink

Just specify the containing directory as an artifact path, and all of it's contents are automatically included as artifacts, and you can name them whatever you want.

--Dave Griffith

Comment actions Permalink


In addition to the approach Dave suggested, you can also use whildcards (* and **) in the artifacts specification.
Please refer to our documentation for a full description: http://www.jetbrains.net/confluence/display/TCD3/Build+Artifact

Properties references are also supported in the artifacts definitions, so you can use something like:

Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
"Develop with pleasure!"

Comment actions Permalink

I've had success using artifact paths like this:
.buildoutput/local/%system.teamcity.projectName%/jars => jars

All of my build agents currently run on Windows though, not sure if it makes a difference.


Please sign in to leave a comment.