TF 构建定义更改的事件通知

Event notification for changes to TF Build definitions

当 TF Build(非XAML)构建定义在 TFS 2017 Update 1 On-Prem 中更改时,是否有任何方法可以订阅通知(服务挂钩、SOAP 或其他方式)?

我试过:

  1. 正在为 BuildDefinitionChangedEvent 事件类型订阅 "old-style" SOAP 通知,但这只会发布对 XAML-构建定义
  2. 更改的通知
  3. 查看了服务挂钩,但没有触发更改构建定义

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 中定义了一个 BuildDefinitionChangedEvent 是特定于 TF Build 的,但我看不出如何挂接到事件中。

有办法实现吗?

您可以尝试在 Microsoft.TeamFoundation.Build2.WebApi.dll

中使用事件 Microsoft.TeamFoundation.Build.WebApi.Events.BuildDefinitionChangedEvent

然后部署到 Web Services\bin\Plugins 以调用 BuildDefinitionChangedEvent 订阅者。