TeamCity On-Premises
 
You are viewing the documentation for an earlier version of TeamCity On-Premises.

Configuring VCS Post-Commit Hooks for TeamCity

Last modified: 11 June 2021

By default, TeamCity uses a polling approach to detect changes in a VCS repository, that is for each VCS root. It periodically sends requests to the version control repository server to find out whether there are new revisions. For large installations with hundreds of VCS roots, this may create a noticeable load on the VCS server and on TeamCity.

To avoid background polling, it is possible to set up a post-commit hook on the VCS server, which will notify TeamCity to start checking for changes procedure. This way, TeamCity will make background requests for changes detection only when such changes are available.