All the projects that we have built so far use GitHub as the Git repository host. Creating VCS roots based on GitHub and polling the repository for changes is the same as using any other Git host.
However, TeamCity can provide much tighter integration with GitHub, which is what we will look at in this section.
GitHub provides integrations with various third-party tools. These integrations help to trigger different actions in these third-party tools based on the activity—such as pushing to a repository—on GitHub.
TeamCity is one such third-party tool that GitHub supports. With the third-party services integration enabled, we can have GitHub trigger builds when there is a push, rather than have TeamCity poll the repository for changes.
The integration can be enabled from the Settings | Webhooks & Services page for the repository concerned on GitHub. Click on the Configure services button to get a list of the supported third-party tools, and choose...