![](/img/trans.png)
[英]Azure pipeline will not trigger from a branch with a single azure-pipelines.yml file
[英]How to trigger azure yml pipeline on tagging master branch only
關於 azure yml 管道觸發器
如何達到以下要求我想觸發我的 azure yml 管道
如何處理這個任何想法,我現在有以下觸發器集?
trigger:
branches:
include:
- develop
- master
- features/*
paths:
exclude:
- README.md
- azure-pipelines.yml
tags:
include:
- refs/tags/*-RELEASE
在 Azure DevOps Service 中,yaml build 只是觸發當前分支,如 dev 分支中的.yml
文件,並添加 Push trigger trigger - master
,然后在 master 分支中 push 代碼,不會觸發構建。
作為一種解決方法,我們需要更新不同分支中的.yml
內容。
例如,如果我們在 master 分支中創建 YAML 構建,它將在 master 分支中創建azure-pipelines.yml
文件。
我們可以通過添加以下推送觸發器來做到這一點
trigger:
batch: true
branches:
include:
- master
tags:
include:
- refs/tags/*-RELEASE
然后創建分支開發和功能,它還包含文件azure-pipelines.yml
,編輯文件內容。
trigger:
batch: true
branches:
include:
- develop #in the develop enter develop, in the feature branch, we need to update it to feature.
tags:
exclude:
- refs/tags/*-RELEASE
更新1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.