title: Trigger Jenkins job only if there is a code change in certain folders
body: <p>I have a Jenkins job hooked up to Github repo and this job is triggered externally (I do not have permission to configure the parent job). 
  Now I want to run the job only if there is a code change in certain dirs and ignore running this job if there is only changes in certain dir like <code>doc, .. etc</code> </p>
  
  <p>I found that under <strong>Source Code Management -> Addition Behaviour</strong> section, there is a option called <strong>'Polling ignores commits in certain paths' (Jenkins Git plugin)</strong> and configured the following,</p>
  
  <pre><code>Included Regions:
      [project]/src/.*
      [project]/test/.*
      [project]/scripts/.*
  
  
  Excluded Regions:
      [project]/doc/.*
  </code></pre>
  
  <p>But using this, if there is a change only in the <code>doc</code> folder also, the build is been triggered and run by the job. How to fix this ?</p>