I want pipeline for one repository to be run after a commit is made to another repository inside the same Azure project.
My pipeline definition:
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'
Sup.Dev.A is the name of the repository that should trigger my pipeline when commit is made on branch test
. But when I create a commit on branch test, the trigger does not fire.
Both repositories are in the same project Am I missing something? The code was based on ms documentation https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#triggers
EDIT: The -template section was added so its clear that, when manually triggered, pipeline executes template from the resource repository succesfully