An extensible plugin for TFS that sends notifications to Slack, HipChat and IRC
I'm dropping support for TFS 2015 RTM and 2015 Update 1 in this release. TfsNotificationRelay.tfs2015-v1.17.0 will only run on TFS 2015.2 and TFS 2015.3.
text
attribute (affects GitPush, Checkin, WorkItemComment, GitCommitComment, PullRequestComment and ChangesetComment).
If you for instance don't want the automatic comments when checking in a changeset associated with a work item, you can now add a rule like this:<rule notify="false" events="WorkItemComment" text="Associated with changeset" />
PolicyViolation
event to work with TfsPolicy
This bugfix release fixes #42 for TFS 2015. Work item DM notifications via DirectMessageNotifier wouldn't fire.
Looking for TFS 2013 binaries? Get the previous release!
TFS 2015.1 and 2015.2 support.
I have merged the old tfs2015 branch into master. The other active branches are: tfs2013, tfs2015.1 and tfs2015.2.
You can configure the TFS 2015 build output separate from XAML builds using the new setting build2015Format
. Because the default build number scheme is different for TFS 2015 builds (doesn't contain build definition).
The user mapping that I added for the Slack direct messaging notifier can now be used with the ordinary notifiers. Useful for instance if you want a channel message in Slack to generate a Slack notification and get someones attention.
Example format that uses {mappedUser}
to generate a Slack notification.:
build2015Format="Build ({buildReason}) <{buildUrl}|{projectName}/{buildDefinition}-{buildNumber}> triggered by <@{mappedUser}> ({buildDuration})."
Check out notification formatting to see available parameters.
buildStatuses
in the config was treated as None. I changes so it is treated as All. The same goes for events
.Make sure to pick the correct zip file!
Check-in messages are now truncated on newline or commentMaxLength
. Work item comments are now truncated on discussionCommentMaxLength
(new setting - add it to your config if you're updating).
Three new events added for when someone comments on a check-in, git commit or pull request.
The discussion comment feature exists in both TFS 2013 and 2015, but I couldn't find an event for it in TFS 2013.
The discussion notifications need these three new text formats in the config: commitCommentFormat
, pullRequestCommentFormat
and changesetCommentFormat
.
vNext builds (TFS 2015) will now generate BuildCompleted notifications. To make the event handler pick up this event, the dll:s have to also be copied to TFSJobAgent\Plugins
in addition to Web Services\bin\Plugins
.
The 2015 zip file no longer contains Newtonsoft and HtmlAgilityPack assemblies. Since TFS 2015 are loading them by default, we don't need to add them to the Plugins directory. This gets rid of the "Detected duplicate loading of assembly HtmlAgilityPack" error message in the event log.
No new features added for TFS 2013.
basedOn
attribute.branchFormat
, tagFormat
, refSeparator
.BuildCompleted
.buildStatuses
has been added to filter statuses.WorkItemCreated
and WorkItemChanged
.workItemfields
rule filter
controls which field changes generate a work item changed notification.WorkItemComment
for when someone leaves a comment on a work item.workItemType
filter.areaPath
filter for work items.teamName
filter which applies to most events.If you're upgrading, make sure to update the config file to reflect the event changes and new text strings (workItemFieldTransitionFormat, commentedOn and comment).
Look in the wiki for which filter applies to which event.