Forum Discussion

arijeetsaha's avatar
arijeetsaha
Copper Contributor
Sep 12, 2023

Use Path Filter in multi checkout Repo YAML file

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
 
 
  • arijeetsaha's avatar
    arijeetsaha
    Copper Contributor

    @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.

Resources