Teamcity Project settings in SVN and branches


April 2019


257 time


I am using TeamCity to build a project hosted in an SVN Repo. I use one VCS root in project and checkout rules in each build configuration to be able to build feature branches. I think about using TeamCity feature "Storing Project Settings in Version Control".

Now the question: How is it possible to store the settings for each build configuration in the belonging branch? Is there an tricky solution?

When I activate the feature all settings of all build configurations are stored in VCS root, which is the level above the branches. My intention is that every branch can have its own TeamCity configuration which lies next to the code in SVN.

1 answers


There's a blog post that explains how to implement the settings in branches.

You have to enable synchronization for the Versioned Settings in the Project configuration. That results in a .teamcity directory being added to the repository. Next, create a branch and edit the settings files in the branch. Note that not all the changes are effective in a branch as some of the settings, such as VCS are defined by the master branch.