Use Path Filter in multi checkout Repo YAML file

Copper Contributor

I was trying to use the path filter in the yaml file to trigger CI. The path filer works fine from the same Repo, but when I try to trigger the Code Repo from my Pipeline Repo, looks like the pipeline is not triggering at all.  Not sure if path filter is supported when using resources task:

 

The one that is working where Code and Pipeline are in the same Repo:

trigger:
  branches:
    include:
    - Dev
  paths:
    include:
    - xxx/xxx/xxx
 
The one that is not working where Pipeline and Code Repo are different:
trigger:
Dev
resources:
  repositories:
  - repositoryA
    typegit
    name: <Project>/<CodeRepo>
    refDev
    trigger:
      branches:
        include:
        - Dev
      paths:
        include:
         - xxx/xxx/xxx
 
 
1 Reply

@he problem has been resolved. The issue is the secondary repo should have the yaml code in main branch and not in any other branches.