简体   繁体   English

我在尝试克隆 azure devops 中的管道时遇到授权问题

[英]Im having an authorization problem when trying to clone a pipeline in azure devops

I have the correct authorizations and i can clone the pipeline manually but when i try to do it with postman i receive the following response:我有正确的授权,我可以手动克隆管道,但是当我尝试使用 postman 进行克隆时,我收到以下响应:

{
    "$id": "1",
    "innerException": null,
    "message": "You are not authorized to access this API. Please contact your project administrator",
    "typeName": "System.UnauthorizedAccessException, mscorlib",
    "typeKey": "UnauthorizedAccessException",
    "errorCode": 0,
    "eventId": 0
}

I am using the following url:GET https://{instance}/{collection}/{project}/_apis/test/cloneoperation/{cloneOperationId}?api-version=5.0-preview.2我正在使用以下 url:GET https://{instance}/{collection}/{project}/_apis/test/cloneoperation/{cloneOperationId}?api-version=5.0-preview.2

Please help.请帮忙。

The _apis/test/cloneoperation/xxx is not used to clone pipeline, it is used to get clone information for test plan/suite. _apis/test/cloneoperation/xxx 不用于克隆管道,它用于获取测试计划/套件的克隆信息。

To clone pipeline, you could get a build definition , then update something and create a new build definition .要克隆管道,您可以获得构建定义,然后更新某些内容并创建新的构建定义

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM