[英]Automate multiple builds/ releases in Azure DevOps
We have dozens of code repositories in Azure DevOps, and we're working on a major release strategy. 我们在Azure DevOps中拥有数十个代码存储库,并且我们正在制定主要的发布策略。
We have a stable development branch called develop
, where code has been tested and peer-reviewed, with features approved by QA. 我们有一个稳定的开发分支,称为develop
,其中的代码已经过测试和同行评审,并且具有经过QA批准的功能。 All of our service repositories have a similar structure. 我们所有的服务存储库都具有类似的结构。
We want to "click a button" and branch from develop
across all our repositories to a release candidate branch, that QA can regression test as a complete system... basically a "snapshot" of what we expect is ready for release. 我们要“单击一个按钮”,并从我们所有存储库的develop
分支到一个发行候选分支,QA可以将测试作为一个完整的系统进行回归……基本上是我们准备发布的快照。 We would then build from this code base, release to our QA environment from the corresponding builds, and when certified, deploy to production, then smoke test and merge the release candidate branch into master
, then master
back into develop
. 然后,我们将基于此代码库进行构建,并从相应的构建版本发布到我们的QA环境中,并在通过认证后部署到生产环境中,然后进行冒烟测试并将发布候选分支合并到master
,然后再将master
重新集成到develop
。
It doesn't seem like there's an easy way to manage multiple builds or releases in Azure DevOps though. 不过,似乎没有一种简单的方法可以在Azure DevOps中管理多个版本或版本。 Atlassian's Bamboo supported this concept of "meta builds" but I don't see a way to do this in Azure DevOps. Atlassian的Bamboo支持这种“元构建”的概念,但是在Azure DevOps中我看不到做到这一点的方法。 I can't seem to even create a build that is not implicitly linked to a single repository. 我似乎甚至无法创建未隐式链接到单个存储库的构建。
How can I automate this and get this workflow working in Azure DevOps? 如何实现此自动化并使此工作流在Azure DevOps中运行?
You can use a Build Task from the Marketplace that queue a new build: the first two found are Trigger Build Task and Build Chain . 您可以使用来自Marketplace的构建任务来排队新构建:找到的前两个是Trigger Build Task和Build Chain 。 You defined an overarching build that queues the single ones and does any additional work. 您定义了一个总体构建,该构建将单个构建排队并进行其他任何工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.