azure - 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?
解决方案
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:
推荐阅读
- javascript - 如何从另一个对象数组迭代创建新对象
- javascript - 文本上的 TouchableOpacity 效果
- python - 静态 gcloud 令牌?
- javascript - 如何将函数外的 XHR.onload 函数内的变量值分配给 javascript 变量?在 django
- mysql - MYSQL中时间戳和小时数的总和
- r - 使用 R 使用均值和标准开发进行交叉表计数
- html - 在移动设备上检查时,没有一个 div 使用 100% 的最大宽度
- node.js - 无法发布(节点/快递),我错过了什么?
- flutter - 我想做一个这样的按钮,但没有得到想要的输出
- r - 为什么 glmnet 中泊松套索回归模型的预测不是整数?