简体   繁体   English

用于并行应用部署的 Azure DevOps 审批门

[英]Azure DevOps Approval Gate For Parallel App Deployments

I have CI set up in Azure DevOps so as soon as an artifact is changed, it is released to our 2 dev environments.我在 Azure DevOps 中设置了 CI,因此一旦工件发生更改,它就会发布到我们的 2 个开发环境中。 This is done in parallel, so they both go out together.这是并行完成的,所以他们一起出去。 I'd like to put an approval action on this release to our Dev environments, which I have done, but suspect it is not the most efficient way.我想在我们的开发环境中对此版本进行审批,我已经这样做了,但我怀疑这不是最有效的方式。 I have 2 options that I can see...我有 2 个选项,我可以看到...

  1. Put the 2 dev stages in series and use one of the stages as an approval gate.将 2 个开发阶段串联起来,并使用其中一个阶段作为批准门。
  2. Create a stage before the parallel deployments specifically for this approval and leave the deployments to be released in parallel.在并行部署之前专门为此批准创建一个阶段,并让部署并行发布。

I don't like no.1 because it means I have to wait until one is fully released and restarted before the second one is started (this issue is replicated on UAT and Live where there are more environments)我不喜欢 no.1 因为这意味着我必须等到一个完全释放并重新启动才能启动第二个(这个问题在有更多环境的 UAT 和 Live 上复制)

So I have implemented No.2.所以我实施了No.2。 Like so...像这样...

所以我实施了No.2。像这样...

Here there is a stage (Development Gate) specifically for approval only (although approval is switched off in this pic)... but this stage has a job (which I cannot remove), which is wasting time and resources as it is set up... Can someone suggest a better way to make an approval gate for this scenario?这里有一个阶段(开发门)专门用于批准(虽然在这张图片中批准是关闭的)......但是这个阶段有一个工作(我无法删除),它在设置时浪费时间和资源...有人可以建议一种更好的方法来为这种情况设置审批门吗?

Thanks谢谢

But this stage has a job (which I cannot remove), which is wasting time and resources as it is set up但是这个阶段有一个工作(我无法删除),它在设置时浪费时间和资源

You can add an agentless job to your Development Gate stage and remove the agent job.您可以向 Development Gate 阶段添加无代理作业并删除代理作业。 Since no task is added to the agentless job, it will succeed immediately and will not waste time and resources.由于没有任何任务添加到无代理作业中,它会立即成功,不会浪费时间和资源。

在此处输入图片说明

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

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