How to Send Build Information to GitHub, Jira, and Other Similar Platforms

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.

tutorials-img

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.

tutorials-img

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.

tutorials-img

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.

tutorials-img

For authentication purposes, you’ll be asked to paste your authentication token.

tutorials-img

After that, you can test your connection and then click Save.

tutorials-img

Once you set up the connection, you’ll be able to see the new connection under Build Features.

tutorials-img

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.

tutorials-img

If you click on Details, it will take you back to the TeamCity Server, where you can review your build information.

tutorials-img

That’s all for now! Watch our other tutorials to learn how to integrate TeamCity with other tools in your tech stack.

Happy building!