Name | Detail |
---|---|
Template Description | Microsoft Teams |
Template Id | microsoft-teams |
Contributor | Github: netwolfuk, giacomolozito |
A template for interacting with the Microsoft Teams Group Chat Software. Currently just supports the success, fixed, failed and broken events. Pull requests welcome for adding other events or enhancing the message.
After installing this template in TeamCity, follow these instructions to create a Incoming Webhook URL in a Microsoft Teams channel and create a Webhook in TeamCity
- Open Microsoft Teams.
- Open the channel you want to post to from TeamCity.
- Click the ... menu on the right of the channel name then select Connectors.
- In the connector list, on Incoming Webhook click the Configure button.
- On the opening dialog enter a name for the Incoming Webhook, e.g. TeamCity.
- Optionally, upload an image representing TeamCity.
- Click Create button. Microsoft Teams will then show the Webhook Incoming URL.
- Copy the URL which is created into the clipboard.
- In another browser tab or window, create a new WebHook in TeamCity. See Creating-a-WebHook for details.
- Copy and paste the URL from the Microsoft Teams dialog into the WebHook dialog.
- Set the WebHook Payload Format to Microsoft Teams (JSON).
- Choose the WebHook Build Events you want to post to your Microsoft Teams channel.
- Click Save, and then trigger a build. You should see messages appear in the Microsoft Teams channel.