Approve a yaml pipeline deployment in Azure DevOps using REST api

◇◆丶佛笑我妖孽 提交于 2020-05-13 09:30:37

问题


I'm using the new multi-stage pipelines in Azure DevOps to manage deployments to Azure environments. I setup the corresponding Environments in Azure DevOps so that we can explicitly approve the actual deployments for each system.

We want to provide a custom web view to monitor the deployments and approve them. I couldn't find any online docs for the REST api of the new pipelines and environments. So far I can only trigger the releases but I need to approve the deployments from the Azure DevOps portal.

Any doc, blog post or example available?


回答1:


Currently Approve a yaml pipeline deployment in Azure DevOps using REST api is not supported.

As we can see by pressing F12 in browser when approving a deployment, it has the different "approvalId":"8ca00a75-de34-43c0-83b9-702dd1aae775"every time for the same environment.

You can suggest the feature from https://developercommunity.visualstudio.com/content/idea/post.html?space=21



来源:https://stackoverflow.com/questions/59171325/approve-a-yaml-pipeline-deployment-in-azure-devops-using-rest-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!