azure-devops - Azure 管道 Yaml 管道
问题描述
我有两个不同的 yaml 管道,一个用于生产,一个用于开发。开发:
trigger:
batch: True
branches:
include:
- Development
paths:
include:
- Azure/Payload/Development/Payload.json
生产:
trigger:
batch: True
paths:
include:
- Azure/Payload/Prod/Payload.json
当我提交开发分支文件时,Prod 和 dev 和管道都在执行。但它正在成功执行,另一方面,如果我触发 prod,则仅触发 prod 管道。我不确定为什么以及如何发生这种情况。
解决方案
好吧,在第二个中,您缺少第一个分支过滤器
branches:
include:
- Development
因此,如果您的分支是,Production
请添加分支过滤器:
branches:
include:
- Production
推荐阅读
- android - 设置 FLAG_LAYOUT_NO_LIMITS 但滚动在 android 中不起作用
- c++ - 在 Compiler Explorer 上比较函数和函数模板之间的输出
- javascript - 如何在 dc-tableview.js 中执行 dc.js renderlet 或 pretransition 函数而不重新渲染整个表?
- sorting - 在 Solr 中,如何根据文档的属性对文档进行不同的排序?
- python - 如何根据现有列值在 Python 中创建分类列?
- python - Moviepy VideoFileClip 中途切断视频
- javascript - 如何检查一个值是否在 JSON 返回中?
- sql-server - 在sql查询中创建分隔符
- api - 执行 POST 请求时出现 CERTIFICATE_VERIFY_FAILED 错误?
- python - docker给出的URL未加载