title: How can I configure Jenkins Gerrit Trigger event to exclude a file path?
body: <h1>Background</h1>
  
  <p>My git repository is hosted by a Gerrit server.   We also use Jenkins, along with the Gerrit Event and Git Plugin, to trigger automatic jenkins jobs build when a review is pushed to Gerrit.</p>
  
  <p>Say the git repo has the following folder structure</p>
  
  <pre><code>ProjectA
      - .git
      - folderA
      - folderA/folderA1
      - folderA/manual_tests
      - folderA/manual_tests/file1
      - folderB
      - folderB/folderB1
      - folderB/manual_tests/file2
      - folderC
      - folderC/folderC1
      - folderC/manual_tests/file3
      - folderD
      - folderD/folderD1
      - folderD/folderD1/FolderD11
      - folderD/folderD1/FolderD11/manual_tests/file4
      - folderD/folderD1/FolderD12
      - folderD/folderD2
  </code></pre>
  
  <p>Currently, the Jenkins job is defined to run on all branches by specifying Type <code>Path</code> with pattern  <code>**</code>.  This config causes the job to run with every review.</p>
  
  <h1>The Issue</h1>
  
  <p>Here's what I'm trying to accomplish:  </p>
  
  <ul>
  <li>If the code review only contains changes made to any <code>manual_tests</code> folder, I don't want to Jenkins Jobs to get triggered.</li>
  <li>If the review contains at least least one file/folder that is not <code>manual_tests</code>, the trigger the jobs</li>
  </ul>
  
  <p>I tried adding a <code>File Path</code> with type <code>RegExp</code> with a pattern of <code>(?!.*manual_tests.*).*</code>, but this did not achieve my end goals.  I tried various regular expression patterns, but I never got the end goal.</p>
  
  <p>Is it possible to not trigger a Jenkins job if a gerrit review only contains changes in <code>manual_tests</code> folders?</p>