答案 0 :(得分:1)
首先,您需要使用提供的API创建发行版,然后,您需要使用Update Release Environment API来开始发布(环境= stage):
PATCH https://vsrm.dev.azure.com/{organization}/{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}?api-version=5.1-preview.6
身体:
{
"status": "inProgress",
"scheduledDeploymentTime": null,
"comment": null,
"variables": {}
}