Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Change the build number
Permanently deleted user
Created
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?
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?
Take a look at this document: http://www.jetbrains.net/confluence/display/TCD3/BuildScriptInteractionwithTeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildNumber
--
Pavel Sher
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
Ray,
The new build number will be shown in TeamCity UI as well. At least it must be shown there :)
Regards,
KIR
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
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