Dynamic Artifact Names - Are They Supported?

Hi,

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.

Ed

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

3 comments
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

0
Comment actions Permalink

Hello,

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:
NCoverClassReport-%system.build.number%.html


--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
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.

0

Please sign in to leave a comment.