[英]GitHub pull requests triggering all pipelines in Azure DevOps
对于每个分支,我在 Azure DevOps 中有 3 条管道,代码在 GitHub 上。
每当我执行任何拉取请求时,我的所有 3 个管道都会被触发。 我怎样才能避免这种情况?
消息说“PR 自动化”
我的 3 个管道正在使用单独的分支:
开发管道
trigger:
branches:
include: [develop]
paths:
include:
- backend/*
暂存管道
trigger:
branches:
include: [staging]
paths:
include:
- backend/*
生产流水线
trigger:
branches:
include: [master]
paths:
include:
- backend/*
我在文档PR 触发器中找到了如何禁用所有 PR 添加的运行:
pr: none
它像这样进入根目录:
trigger:
branches:
include: [develop]
paths:
include:
- backend/*
pr: none
还:
重要的
YAML PR 触发器仅在 GitHub 和 Bitbucket 云中受支持。 如果您使用 Azure Repos Git,您可以配置一个分支策略进行构建验证,以触发您的构建管道进行验证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.