Forum Discussion
arijeetsaha
Sep 12, 2023Copper Contributor
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:
- repository: A
type: git
name: <Project>/<CodeRepo>
ref: Dev
trigger:
branches:
include:
- Dev
paths:
include:
- xxx/xxx/xxx
- arijeetsahaCopper 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.