Sta*_*Net 5 azure-devops azure-pipelines azure-pipelines-yaml
我希望在提交到同一 Azure 项目内的另一个存储库后运行一个存储库的管道。
我的管道定义:
resources:
repositories:
- repository: SupDevA
name: Sup.Dev.A
type: git
ref: test
trigger:
branches:
include:
- test
steps:
- script: 'echo test'
- template: dummy-template.yml@SupDevA
parameters:
text: 'testing if the dummy templates is executed'
Run Code Online (Sandbox Code Playgroud)
Sup.Dev.A 是在分支上进行提交时应触发我的管道的存储库的名称test
。但是当我在分支测试上创建提交时,触发器不会触发。
两个存储库都在同一个项目中,我错过了什么吗?该代码基于MS文档https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#triggers
编辑:添加了 -template 部分,因此很明显,当手动触发时,管道会成功执行资源存储库中的模板
由于@walter-qian-msft 成功地重现了这一点,所以它一定是管道位置的某些东西扰乱了触发器。
由于他可能在默认分支上对此进行了测试,因此您是否尝试将 YAML 文件合并到master
/main
分支?
归档时间: |
|
查看次数: |
1939 次 |
最近记录: |