title: Is there a way to exclude jobs from Gitlab stages?
body: <p>I have a long gitlab CI in a mono repo kind of structure. It looks as follows:</p>
  <pre><code>Project A
  
      --- .gitlab-ci.yaml (contains thousands of jobs across 3 stages(plan, test and apply) and also includes gitlab-ci folder)
      --- gitlab-ci/my-ci.yaml (folder than contains specific ci files, this has 2 stages, plan and apply for my-new-code)
      --- my-new-code (folder which I recently pushed)
      --- other folders
  </code></pre>
  <p>I have added <code>my-ci.yaml</code> as a separate file to the <code>gitlab-ci</code> folder. But what happens is that those thousands of jobs from the <code>gitlab-ci.yaml</code> run along with the relevant job when I push changes only to <code>my-new-code</code> folder.</p>
  <p>I understand that those jobs will run in the stages because they don't have any <code>rules/only/except</code> statements and it is impractical for me to add it to each one of them.</p>
  <p>Is there a way I can exclude these jobs from running in the 2 stages when changes are made to the my-new-code folder?</p>