我正在尝试使用此get请求获取它:
https://dev.azure.com/LumiaWOA/Boot%20Shim/_apis/build/latest/UEFI%20PreLoader Build?branchName=msm8994-pcie&api-version=5.0-preview.1
我得到的只是这样的回答:
{ "$id": "1", "innerException": null, "message": "Cannot serialize type Microsoft.TeamFoundation.Build.WebApi.Build, because the security requirements are not met Namespace:33344d9c-fc72-4d6f-aba5-fa317101a7e9, RequestedPermissions:1, DataspaceIdentifier: 328eea29-7d2f-4cdf-b928-d58c53d8f29d", "typeName": "System.InvalidOperationException, mscorlib", "typeKey": "InvalidOperationException", "errorCode": 0, "eventId": 0 }
https://dev.azure.com/LumiaWoA/Boot%20Shim/_build?definitionId=3
但它显示了这个错误。
根据我的测试,我也可以重现你提到的问题。从响应错误消息500。它与身份验证无关。从服务器端看,Azure Devops API似乎有问题。我建议你可以 your feedback 到天蓝德沃斯。
$top =1 以获取最新版本。有关更多信息,请参阅 List build API .
$top =1
https://dev.azure.com/{orgName}/{projectNam}/_apis/build/builds?definitions=defintionId&$top=1&api-version=5.0-preview.5