首页 > 解决方案 > azure devops how can i make a pipeline that will update 2 branches?

问题描述

I have a pipeline for the master, when a pull request is happening for the master the pipeline will check it and if everything is okay it will deploy it on the website, on the masterbranch.

But what i want to do is when i do a pull request for the master, i also want to update the hotfix branch with the same build. So once i have made a pull request for the master branch that it also will update the master branch but also the hotfix branch with the latest version. How can i accomplish this?

标签: azureazure-devopsazure-pipelines-release-pipeline

解决方案


It's not able to update hotfix branch automatically if there is no change on it. You need to perform a merge from master branch to hotfix branch, and specify a trigger in your YAML file as below:

trigger:
- master
- hotfix

In this way, both master branch and hotfix branch can trigger this pipeline.

Useful links:


推荐阅读