Azure DevOps增量管道 [英] Azure DevOps Incremental pipeline

查看:79
本文介绍了Azure DevOps增量管道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有2个组件,并且有2个不同的构建和发布管道.他们俩都提到了构建和发布的不同途径.在发布管道任务创建或更新Azure资源"中,两者都有相同的链接模板和主模板.但是这里的问题是,如果我部署第二个组件,那么第一个组件中的所有配置和代码都将被删除...现在,我只能看到第二个组件配置.我已经在管道和模板中选择了部署模式作为增量模式.

I have 2 components in my project and have 2 different build and release pipelines. For both of them am mentioning different paths for build and publish. In the release pipeline task "Create or Update Azure Resources" both are having same linked and main templates. But here the problem is if i deploy the second component then all the configurations and code in the first component is getting removed... Now i can see only second component configurations. I have selected deployment mode as incremental both in the pipeline and templates as well.

推荐答案

由于不确定您的 template.json/template.parameter.json 文件和您的任务配置是什么样的,我只是分享一下我的配置供您参考.

Since not sure what does your template.json/template.parameter.json file and your task configuration looks like, I just share my configuration for you refer.

Azure资源组部署任务中,您可以使用覆盖模板参数覆盖参数值,并且该覆盖仅影响当前作业:

In the Azure resource group deployment task, you can use Override template parameters to override the parameter value and this override only affect the current job:

在第一次部署时,我使用的名称是MerlinAngular.在第二个部署中,Web应用程序名称和服务计划名称为Change-Merlin.您可以看到第二个结果没有替换并覆盖第一个结果.

At first deploy, I am using the name MerlinAngular. In the second deploy, the webappname and serviceplan name is Change-Merlin. You can see the second one result does not replace and override the first one.

我正在使用的是 template.parameter.json 文件

然后使用 Override模板参数选项来实现增量部署.

then use the Override template parameters option to achieve incremental deploy.

您可以尝试这种方式.

这篇关于Azure DevOps增量管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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