Skip to content

Latest commit

 

History

History

microsoft-teams

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

User Contributed tcWebHooks WebHook Template

Name Detail
Template Description Microsoft Teams
Template Id microsoft-teams
Contributor Github: netwolfuk, giacomolozito

Purpose

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.

Example output

Successful build

Teams success

Failed build

Teams failure

Installation/Configuration Instructions

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

  1. Open Microsoft Teams.
  2. Open the channel you want to post to from TeamCity.
  3. Click the ... menu on the right of the channel name then select Connectors.
  4. In the connector list, on Incoming Webhook click the Configure button.
  5. On the opening dialog enter a name for the Incoming Webhook, e.g. TeamCity.
  6. Optionally, upload an image representing TeamCity.
  7. Click Create button. Microsoft Teams will then show the Webhook Incoming URL.
  8. Copy the URL which is created into the clipboard.
  9. In another browser tab or window, create a new WebHook in TeamCity. See Creating-a-WebHook for details.
  10. Copy and paste the URL from the Microsoft Teams dialog into the WebHook dialog.
  11. Set the WebHook Payload Format to Microsoft Teams (JSON).
  12. Choose the WebHook Build Events you want to post to your Microsoft Teams channel.
  13. Click Save, and then trigger a build. You should see messages appear in the Microsoft Teams channel.