1

I have a gitlab repo which has two folders(folder-a and folder-b) in it, I want them to get triggered based on the commit on their folder. Currently I have a single gitlab.yml file which has below configuration. It triggers folder-a but not folder-b.

folder-a:
  trigger:
    include:
      - local: folder-a/.gitlab-ci.yml
  rules:
    - changes: [folder-a/*]
folder-b:
  trigger:
    include:
      - local: folder-b/.gitlab-ci.yml
  rules:
    - changes: [folder-b/*]
Atul Verma
  • 361
  • 8
  • 22

1 Answers1

0

Sorry I had the issue with folder-b .gitlab-ci yml file. this works fine, now able to trigger folder based on commits to the branches

Atul Verma
  • 361
  • 8
  • 22