from
http://www.jetbrains.net/devnet/message/5235473aarnott:
I have a branch for every minor version of the project, and then a few feature branches that come and go as needed, and I'd like build configurations for all of these. So for example, I have "master" for the next big thing, and then maintenance branches for "v2.5", "v2.4", "v2.3", etc. In each of these branches I have tags for each revision, such as v2.5.4. Feel free to visit
http://github.com/AArnott/dotnetopenid/ if you want to see the branches as I use them directly. So right now I have about a dozen branches I would want to build. Then I have a few other branches that don't contain source code, or whose source base is so old the build configuration would have to be adjusted for.
Do you think of automatic build configuration creation for every new branch or some other approach?
Yes. As soon as a branch is created on the repository that TeamCity pulls from, I'd like a build configuration to be automatically created based on some template configuration. After these configurations are created, I may need to customize them and/or delete them and they should stay altered/deleted, but by far the most common case would be a build for every new branch.
From a configuration side - I'd see configuring a glob/regex pattern for which branches to merge in - any merge failure would be an immediate build breaker.
We are currently working on TW-8326. However, I am not sure the feature will be stable enough in two month and it might be not included into TeamCity 6.0.
However, it has good chances to be available in 6.1 (probably in abound 6 month).
After TW-8326 is implemented (so a commit into a branch whose name matches some pattern automatically creates a personal build in TeamCity), we will try to implement support for pushing the branch's changes into master - this looks like what you request except for the builds being personal.
Feature to support building off different DVCS branches has at least two approaches: requested by this issue (create separate build configuration for every new branch) and TW-16052 (build different branches inside one build configuration, tag the builds appropriately).
Difference between the approaches is summarized in the comment.
We would appreciate if you can let us know which approach better suits YOUR needs.