Mattermost TeamCity Plugin
About
This plugin integrates Mattermost with JetBrains' TeamCity CI/CD software.
Installation & Use
- Download the latest release from the releases page
- Install it in Mattermost by following these instructions
- Create a TeamCity authentication token
- Run the slash command
/teamcity install <teamcity server> <auth token>
to connect to the TeamCity server - Use one of the following slash commands to interact with TeamCity from within Mattermost:
/teamcity project list
- List projects with description and project id/teamcity build list
- List builds with description, project, and build id/teamcity build start <project>
- Trigger a build on a specific project/teamcity build cancel <build_id>
- Cancel a build/teamcity stats
- Shows agents and the current build queue (if any)
Configure TeamCity to report build events via webhook
- Create an incoming webhook in Mattermost, e.g.
https://mattermost.example.com/hooks/kp1zt6uxk3dzxffnzkrjff3e3o
- In TeamCity, install the Web Hooks (tcWebHooks) plugin
- In your build Settings, click
WebHooks
: - Add a webhook for every build, a specific project, or a specific build
- Click "Click to create new WebHook"
- Enter the Mattermost webhook URL in the
URL
field and forPaylod Format
select eitherSlack.com JSON templates (JSON)
orSlack.com Compact Notification (JSON)
- Select the build events to post to this webhook
- Click
Save Web Hook