Change the build number

I would like my build to set its own build number (determined by reading a properties file). Is there a way that I can override the build number set by TeamCity?

5 comments

Take a look at this document: http://www.jetbrains.net/confluence/display/TCD3/BuildScriptInteractionwithTeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildNumber

--
Pavel Sher

0

Great, thank you. Is there a way to have the next build number shown in the Web UI calculated based off of this number as well?

Thanks,
Ray

0

Ray,

The new build number will be shown in TeamCity UI as well. At least it must be shown there :)

Regards,
KIR

0

Sorry, maybe I should have been a little more clear. I created a test configuration and set its build.xml (ant) to this:

]]>

Now, if the build counter for the configuration is 1 when I start, the build correctly registers as 123, but the next build number still shows up as 2 in the configuration. Is there a way to update the next build number as well? Or, should this be done automatically?

Thanks!

Edited by: Ray Navarette on May 20, 2008 5:58 PM

0

Hello Ray,

Unfortunately, there is no way to update build number of the succeeding builds (besides writing a TeamCity plugin which will do that).

You may fill an enhancement request for such behaviour at http://jetbrains.net/tracker

Thanks!

KIR

0

Please sign in to leave a comment.