TFS 2016

Integrate SLACK to TFS

Posted on Updated on


You can integrate SLACK into TFS by following theses steps, firstly create your team, define channels, define integrating step with TFS, and finally configure Service Hooks into TFS, and choices events to publish.
This post propose to follow just some steps in order to integrate them.

Go to this url : http://www.Slack.com
Define name for Slack Team, we choice Amayestech as name of our Team

slack1

In the second time we must define credentials of team’s owner, it’s me Aghilas Yakoub

slack2

When you have finished with creating of team, we send invitations to news users, in order to read and post messages to Slack channels.

slack3

Slack is organized with two sides, client side and admin side.
For configure Slack to receive posted messages from TFS, we must go to admin side and register Visual Studio Team Services.

slack6

slack5

For this subject Go to Confgure Apps
Select browse link
Select Install link
Select Add Visual Studio Integration

slack7

slack8

You find two configurations, you have for each channel one configuration,
It’s very important to save your GUID of channel;
This GUID will be registered into TFS Service Hooks.
https://hooks.slack.com/services/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

slack9

TFS View

After first configuration into Slack we go to TFS admin side
https://amayestech.visualstudio.com/Amayestech.Tech/_admin/_apps/hub/ms.vss-servicehooks-web.manageServiceHooks-project

slack13

Click on Create first subscription for this project and Click on Next Button

slack14

You have lot of triggers, one trigger for one behavior, for example you can post message after creating of WI, or after finished Release.

slack15

slack14

So we Create first trigger for complete build
We choice build attributes as name or status.

slack16

Click ion next
https://amayestech.slack.com/messages/general/search/integration/

slack17