0
votes

Is there any way to subscribe to notifications (service hook, SOAP, or otherwise) for when TF Build (non-XAML) build definitions are changed in TFS 2017 Update 1 On-Prem?

I have tried:

  1. Subscribing to "old-style" SOAP notifications for the BuildDefinitionChangedEvent event type, but this only publishes notifications for changes to XAML-build definitions
  2. Looked at service hooks, but there is no trigger for changes to build definitions

There is a BuildDefinitionChangedEvent defined in the API contracts for the REST API and the typings for TFS in the VSTS Web Extension SDK. The properties for the BuildDefinition defined in this contract are TF Build specific, but I see no way of how I can hook into the event.

Is there a way to achieve this?

1

1 Answers

1
votes

You could try to use the event Microsoft.TeamFoundation.Build.WebApi.Events.BuildDefinitionChangedEvent in Microsoft.TeamFoundation.Build2.WebApi.dll

enter image description here

Then deploy to the Web Services\bin\Plugins to get the BuildDefinitionChangedEvent subscriber invoked.