Dav*_*ins 5 azure-devops azure-devops-yaml
是否可以在 azure-pipelines.yaml 文件所在的分支(例如 Repo B)的不同存储库(例如 Repo A)的分支的提交/PR 上设置 yaml 管道触发器?
我知道我可以针对 Repo B 构建管道并使用例如:
resources:
repositories:
- repository: Repo A
type: github
endpoint: ***
name: ***/RepoA
trigger:
- master
Run Code Online (Sandbox Code Playgroud)
但是触发器仅适用于 Repo B,即当我向 Repo A 提交 master 时,管道不会触发。
Mat*_*att 13
“Sprint 173”版本似乎包含多仓库触发器功能。我怀疑你可能错过了裁判。
以下示例展示了如何在管道中定义多个存储库资源以及如何在所有资源上配置触发器。
Run Code Online (Sandbox Code Playgroud)trigger: - main resources: repositories: - repository: tools type: git name: MyProject/tools ref: main trigger: branches: include: - main - release如果有任何更新,本示例中的管道将被触发:
mainself包含 YAML 文件的存储库中的分支main或release工具仓库中的分支
| 归档时间: |
|
| 查看次数: |
2581 次 |
| 最近记录: |