TeamCity 4.0 Help

Configuring VCS Roots

A VCS Root is a set of settings that defines how TeamCity communicates with a version control (SCM) system to monitor for changes and to get sources for a build.

TeamCity regularly queries the version control system for new changes and displays the changes in the Build Configuration that have the root attached. When a build starts, TeamCity gets the changed files from the version control and applies the changes into the Build Checkout Directory.

A Build Configuration can have several VCS Roots attached to it.

VCS roots are configured on the 2.Version Control Settings page of a build configuration.

Shared VCS Roots

By default, the same VCS root(s) can be used by all of the project's build configurations. They can also be used by different projects when VCS Roots Sharing is enabled on the New Edit VCS Roots page. Sharing VCS roots saves the administrator's time and the hassle of creating and maintaining identical VCS roots in the repository.

If someone attempts to modify a VCS root that is shared, TeamCity will issue a warning that the changes to the VCS root could potentially affect more that one project. The user is then prompted to either save the changes and apply them to all the projects using the VCS root, or to make a copy of the VCS root for use by either a specific build configuration or project.

Last modified: 20 April 2023