VSTS-无法批准发布 [英] VSTS - Cannot approve release

查看:115
本文介绍了VSTS-无法批准发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解VSTS发行版仍不是最终版本,但存在问题.当有待批准的批准时,有时根本无法批准/拒绝发布.示例:

I understand that VSTS Release is still not under final version, but I am stuck with a problem. When there is a pending approval, sometimes it is simply not possible to approve/reject the release. Example:

如您所见,我有3个环境:DEV,QA和PROD.部署到DEV时,无需批准.因此,现在显示正在进行中",但正在等待批准.

As you can see I have 3 environments: DEV, QA and PROD. When deploying to DEV, there is no approval required. So now it shows "In Progress" but an approval is waiting.

上面的图片证明了我们正在等待Post部署批准.

On the picture above is a proof that we are waiting for the Post deployment approval.

最后,您可以在上方看到我配置了自己以接收批准通知并成为批准者.

Finally, you can see above that I configured myself to receive notification for approval and to be an approver.

有什么主意吗?

[UPDATE] 上面显示了我可以批准进行质量检查的预部署(此处的开发人员已自动批准),现在我无法批准进行质量检查的后部署.

[UPDATE] The above shows that I could approve pre-deployment to QA (DEV here was auto-approved), and now I cannot approve the post-deployment to QA.

以下是成功发布的屏幕截图(尽管仅在DEV环境中),并且具有相同的警告消息:

Here is a screenshot of a successful release (only on DEV environment though), and having the same warning message:

无法更新(网络应用程序名称)的部署状态- {消息":找不到存储库."}

Cannot update deployment status for (web app name) - {"Message":"Repository could not be found."}

推荐答案

当我们有一个不打算部署到产品中的先前发布的候选版本时,它看起来像这样:

When we have a prior release candidate that we are not going to deploy to prod, it looks like this:

请注意,这是在用于VSTS/TFS生成和发布的新Azure DevOps UI中.从上到下按时间顺序显示两个版本部署到产品,然后第三个版本未部署到产品,然后第四个版本(在顶部),直到第三个版本被拒绝或取消,才能部署到产品.两者都可以使用,但是根据我的经验,如果您拒绝发布而不是取消发布,则发布跟踪会更简洁一些.

Note this is in the new Azure DevOps UI for VSTS/TFS builds and releases. This shows, chronologically from the bottom up, two releases deployed to prod, then a third release not deployed to Prod, then a fourth release (at top), which cannot be deployed to prod until the third release is rejected or cancelled. Both will work but in my experience the release tracking is a little cleaner if you reject the release rather than cancel it.

为此,请在第三版Prod环境中单击待批准"以查看批准,然后单击拒绝".如果您有多个尚未发布到Prod的先前发行版,则您将需要全部拒绝或取消它们-我还是更倾向于按时间顺序拒绝它们(从底部附近的第一个未部署版本到顶部附近的最后一个未部署版本).

To do this, click "Pending approval" in the third release Prod environment to view approvals and then click Reject. If you have multiple prior releases not deployed to Prod you will need to reject or cancel them all - again my preference is to reject them chronologically (from first undeployed release near the bottom towards the last undeployed release near the top).

完成后,顶部的版本将不再显示在队列中,并且您可以批准它(假设您已启用部署前批准以批准向Prod的部署).

Once done, the release at the top will no longer appear as queued and you will be able to approve it (assuming you have enabled Pre-deployment approvals for approving deployment to Prod) to allow deployment to commence.

这篇关于VSTS-无法批准发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆