views:

390

answers:

2

I am in the process of setting up teamcity and msbuild to automate our build process a good deal more than we do now. Each project that we work on is being set up as a seperate project in teamcity, and each of those projects is being set up with 3 build configurations: Development, staging, and live. Development is our standard CI build that runs after each checkin. Staging and live perform build and deployment to the appropriate environment.

Our live builds will be numbered using the teamcity counter. But I would like to set up the staging build to number its builds as betas of the next Live build. So if the live build is at version 6 then I would like to number my staging builds as v7b1, v7b2 etc. Is there any way of doing this either in teamcity or as part of an msbuild script?

A: 

Can you not just put "v7b{0}" in the "Build number format" box?

MrMattWright
This is of course one way to to do it but is a manual process. This was something that I was hoping to automate.
Jack Ryan