In this tutorial, we’re going to show you how to configure your TeamCity project so that the TeamCity Server sends the build status (successful or failed) to a third-party platform like GitHub.
First, you’ll need to edit your build configuration.
Then you need to navigate to Build Features and add another build feature – Commit Status Publisher. Commit Status Publisher is a build feature that allows TeamCity to automatically send the build statuses of your commits to an external system.
To set up the Commit Status Publisher feature, select the VCS root. You can select one root or go with <All attached VCS roots>
. This way, the commit status will be sent for all commits in all repositories of a project.
If you only want to send status notifications for a specific repository, you can also select the specific one from the dropdown list.
Once you select the VCS root, you’ll then also need to select the correct Publisher. In our case, it’s GitHub, so let’s select it from the dropdown list.
For authentication purposes, you’ll be asked to paste your authentication token.
After that, you can test your connection and then click Save.
Once you set up the connection, you’ll be able to see the new connection under Build Features.
Now when you run your builds, you’ll be able to see the build status in your VCS (in our case, this is GitHub). Here, you can see that all the checks have passed.
If you click on Details, it will take you back to the TeamCity Server, where you can review your build information.
That’s all for now! Watch our other tutorials to learn how to integrate TeamCity with other tools in your tech stack.
Happy building!
There are multiple ways to integrate TeamCity and GitHub. In this tutorial, we go over the three most important use cases.
This tutorial shows how to send your TeamCity build statuses to Slack. Learn how to connect your TeamCity and Slack instances and which additional configuration options there are to get the most out of this integration.
Integrate TeamCity and JIRA for a smoother and shorter feedback loop between your issues, commits, and CI/CD jobs.