Leo*_*oso 5 api rest azure-devops azure-pipelines
我正在尝试使用此 API 端点创建新的管道:
发布https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.0-preview.1
这是我正在使用的请求:
curl -X POST \
'https://dev.azure.com/<myorg>/<myproj>/_apis/pipelines?api-version=6.0-preview.1' \
-H 'Authorization: Basic <b64string>' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"configuration":{
"repository": {
"id": "<repo-guid>",
"name": "<repo-name>",
"type": "azureReposGit"
},
"path": "pipeline.yaml",
"type": "yaml"
},
"folder": "\\custompath\\",
"name": "<pipelinename>"
}
Run Code Online (Sandbox Code Playgroud)
我不断收到同样的错误:
{
"$id": "1",
"innerException": null,
"message": "Value cannot be null.\r\nParameter name: repositoryName",
"typeName": "System.ArgumentNullException, mscorlib",
"typeKey": "ArgumentNullException",
"errorCode": 0,
"eventId": 0
}
Run Code Online (Sandbox Code Playgroud)
我的有效负载似乎有问题,但文档对此并不是很有帮助 https://docs.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/create?view=azure-devops -rest-6.0
当前版本的 nodejs sdk 还不支持 Pipeline API。谁能帮我?
我能够在我这边重现您的问题,并已在以下网站上报告了此问题:
产品团队回应称“该问题的修复方案已经准备好,应该会在未来三周内发布给大家。 ”
| 归档时间: |
|
| 查看次数: |
468 次 |
| 最近记录: |