title: Gerrit event on Jenkins doesn't trigger automatically on git push
body: <p>I'm new to Jenkins/Gerrit. I'm trying to integrate gerrit with jenkins. I've a jenkins project setup to be triggered when there is a changeset created (push) in my git repository, which is hosted with a gerrit project. The master branch doesn't accept direct push. I use following command to push to the repository.</p>
  <blockquote>
  <p>git push origin HEAD:refs/for/master</p>
  </blockquote>
  <p>Now, when I do a push, the jenkins project doesn't kick off automatically. I can manually trigger gerrit event with, &quot;Query and Trigger Gerrit Patches&quot;.</p>
  <p>Below is the Gerrit server and Trigger plugin version.</p>
  <blockquote>
  <p>Gerrit Server Version: 2.10.3.1</p>
  <p>Gerrit Trigger Plugin: 2.12.0</p>
  </blockquote>
  <p>I pretty much followed the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger" rel="nofollow noreferrer">Gerrit Trigger</a> plugin guideline. The jenkins project setup is in the screenshot (1-3).</p>
  <p>And for gerrit Project access permission, the project inherits from All-Projects. Here is the screenshot (4).</p>
  <p><a href="https://i.imgur.com/8Aax3wU.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/8Aax3wU.png" alt="Image 1" /></a>
  <a href="https://i.imgur.com/XqHFR0L.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/XqHFR0L.png" alt="Image 2" /></a>
  <a href="https://i.imgur.com/snRDU6k.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/snRDU6k.png" alt="Image 3" /></a>
  <a href="https://i.imgur.com/bth18ti.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/bth18ti.png" alt="Image 4" /></a></p>