简体   繁体   中英

Azure DevOps Incremental pipeline

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.

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.

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:

在此处输入图片说明

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.

What I am using is template.parameter.json file,

在此处输入图片说明

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

在此处输入图片说明

You can try with this way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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