title: Azure devops: Monorepo trigger
body: <p>I have a mono-repo with the below structure:</p>
  <pre><code>.
  ├── README.md
  ├── azure-pipelines.yml
  ├── common.py
  ├── sample-job1
  |── azure-pipelines-sample-job1.yml
  │   └── entry-point1.py
  └── sample-job2
      |── azure-pipelines-sample-job2.yml
      └── entry-point2.py
  </code></pre>
  <p>The entry-point1.py and entry-point2.py have common functions written in common.py.</p>
  <ul>
  <li>If I make changes to common.py : azure-pipelines get triggered</li>
  <li>If I make changes to entry-point1.py : azure-pipelines-sample-job1
  get triggered</li>
  <li>If I make changes to entry-point2.py : azure-pipelines-sample-job2
  get triggered</li>
  </ul>
  <p>What I would like to have in addtion is:</p>
  <ul>
  <li>if I make changes to common.py (only if this file is modified), I
  want the other 2 pipelines to be triggered
  azure-pipelines-sample-job1.yml, azure-pipelines-sample-job2.yml in
  addition to the existing logic to trigger azure-pipelines.yml</li>
  </ul>
  <p>This is because entry-point1.py and entry-point2.py calls common.py so a rebuild of the code is necessary every time common.py is changed.</p>
  <p>How do I add this trigger?</p>
  <p>Below is the current triggers I have :</p>
  <p>#azure-pipelines.yml</p>
  <pre><code># Build numbering format
  name: $(BuildID)
  
  trigger:
    branches:
      include:
        - test
        - feat/*
    paths:
      exclude:
        - 'sample-job1/*'
        - 'sample-job2/*'
  
  pool:
    vmImage: 'ubuntu-latest'
  
  steps:
    - script: |
        echo &quot;Hello from '/' root folder.&quot;
    
    
  </code></pre>
  <p>#azure-pipelines-sample-job1.yml</p>
  <pre><code># Build numbering format
  name: $(BuildID)
  
  trigger:
    branches:
      include:
        - test
        - feat/*
    paths:
      include:
        - 'sample-job1/*'
  
  pool:
    vmImage: 'ubuntu-latest'
  
  steps:
    - script: |
        echo &quot;Hello from 'sample1'&quot;
    
    
  </code></pre>
  <p>#azure-pipelines-sample-job2.yml</p>
  <pre><code># Build numbering format
  name: $(BuildID)
  
  trigger:
    branches:
      include:
        - test
        - feat/*
    paths:
      include:
        - 'sample-job2/*'
  
  pool:
    vmImage: 'ubuntu-latest'
  
  steps:
    - script: |
        echo &quot;Hello from 'sample2'&quot;
  </code></pre>