1

我正在尝试在构建完成事件上为我的 yaml 构建管道设置服务挂钩订阅,但我的构建管道绝对不会出现在构建管道过滤器中。我的 ADO 项目有大量构建管道(可能超过 10,000 个?)并显示了我的许多构建管道,但似乎缺少很多。inputValuesQuery将返回的结果数量是否有上限?我还有其他出现的 yaml 和经典管道。

这是我的浏览器提交的列出所有管道的 POST 请求。

POST https://....visualstudio.com/_apis/hooks/inputValuesQuery HTTP/1.1
Host: ....visualstudio.com
Connection: keep-alive
Content-Length: 367
sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"
DNT: 1
X-VSS-ReauthenticationAction: Suppress
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62
Content-Type: application/json
Accept: application/json;api-version=7.1-preview.1;excludeUrls=true
X-Requested-With: XMLHttpRequest
X-TFS-Session: 59fefc9d-ff32-494d-99af-8a60101618d0
sec-ch-ua-platform: "Windows"
Origin: https://myproject.visualstudio.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: redacted
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9


{"subscription":{"consumerActionId":"serviceBusNotificationHubSend","consumerId":"azureServiceBus","consumerInputs":{},"eventType":"build.complete","publisherId":"tfs","publisherInputs":{"definitionName":"","buildStatus":"","projectId":"959adb23-f323-4d52-8203-ff34e5cbeefa"},"resourceVersion":"1.0","scope":1},"scope":10,"inputValues":[{"inputId":"definitionName"}]}

这是我指的对话框:

在此处输入图像描述

4

0 回答 0