-
Notifications
You must be signed in to change notification settings - Fork 32
Installation
Kristian Adrup edited this page Aug 24, 2015
·
1 revision
TfsNotificationRelay is a server side plugin which is installed by copying a few assemblies and a config file to the plugins directory of a TFS application tier. TFS 2013 is found in C:\Program Files\Microsoft Team Foundation Server 12.0 and TFS 2015 in C:\Program Files\Microsoft Team Foundation Server 14.0.
- Download the latest release or clone and build the source yourself. There are separate releases for TFS 2013 and TFS 2015, be sure to pick the correct one for your system.
- Edit
DevCore.TfsNotificationRelay.dll.config
and set the parameters needed, see Slack and HipChat specifics below. The config file has a few example bot configurations. - Drop
DevCore.TfsNotificationRelay.dll
,DevCore.TfsNotificationRelay.dll.config
,Newtonsoft.Json.dll
(TFS 2013 only),HtmlAgilityPack.dll
(TFS 2013 only) plusDevCore.TfsNotificationRelay.Slack.dll
and/orDevCore.TfsNotificationRelay.HipChat.dll
in Application Tier\Web Services\bin\Plugins. If you want notifications on vNext builds (TFS 2015), you also have to drop the dll:s in Application Tier\TFSJobAgent\Plugins and restart the Visual Studio Team Foundation Background Job Agent.
The Slack integration has two different notifiers, one that send messages to channels via an incoming webhook and another one that sends direct messages to users via the Slack API.
- If you don't already have one, add an Incoming WebHook in Slack.
- Set your full unique Webhook URL in
slackWebhookUrl
inDevCore.TfsNotificationRelay.dll.config
.
- Add a new Bot in Slack and customize name and icon.
- Set the API token in
token
inDevCore.TfsNotificationRelay.dll.config
. - To be able to send DM:s, the domain users need to be mapped to Slack users. Get list of Slack users with the following request:
https://slack.com/api/users.list?pretty=1&token=<token>
and map the users in the config.
- Create a room notification token for the HipChat room that you want to send notifications to.
- Set
roomNotificationToken
and the correspondingroom
setting inDevCore.TfsNotificationRelay.dll.config
.
See TfsBot.