2016-09-30 7 views

答えて

0

はい。以下の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" 
    } 
} 
関連する問題