0
以下のURLに記載されているように、これを使用してTFSイベントをプライマリに購読できますか? TFS 2015またはTFS 2016では?TFSレストAPIを使ってTFSイベントを購読できますか?
https://www.visualstudio.com/en-us/docs/integrate/get-started/service-hooks/events
以下のURLに記載されているように、これを使用してTFSイベントをプライマリに購読できますか? TFS 2015またはTFS 2016では?TFSレストAPIを使ってTFSイベントを購読できますか?
https://www.visualstudio.com/en-us/docs/integrate/get-started/service-hooks/events
はい。以下のREST APIを使用してTFS 2015.3でサブスクリプションを作成したところ、テストは成功しました。
POST http://tfsserver:8080/tfs/DefaultCollection/_apis/hooks/subscriptions?api-version=1.0
Content-Type: application/json
{
"publisherId": "tfs",
"eventType": "build.complete",
"resourceVersion": "1.0-preview.1",
"consumerId": "webHooks",
"consumerActionId": "httpRequest",
"publisherInputs": {
"buildStatus": "Failed",
"definitionName": "MyWebSite CI",
"projectId": "xxxxxxxxxxxxxxx"
},
"consumerInputs": {
"url": "https://myservice/myhookeventreceiver"
}
}