TeamCity build dependencies and choosing the correct branch
I have a single project with three build configurations:
- Deploy Dev
- Deploy Release
Build configs 2 and 3 are dependent on 1 via a snapshot.
There are 3 VCS roots:
- Git – All (used with build config 1)
- Git – Develop (used with build config 2)
- Git – Master (used with build config 3)
The default branch and branch specs are as follows:
Git – All
Git – Develop
Git – Master
Here is the problem…
When I run a build for the third build config, I want the dependency to check for integration builds on the master branch. It is not doing and will always use the default branch of the integration build config (currently develop).
Is there a way to achieve what I want?
- Have a single integration build config
- Have a separate build config that is dependent on only develop branch updates
- Have a separate build config that is dependent on only master branch updates
The way I have done it in the past involved using multiple CVS end points on a single build config, which also seems wrong and I wanted to avoid that if possible.
One Solution collect form web for “TeamCity build dependencies and choosing the correct branch”
I would suggest using a variable for branch spec and VCS trigger. That allows you to reuse the VCS root, while still giving you the flexibility to choose the values in each build configuration.