title: Jenkins: settings for Gerrit Trigger problems
body: <p>I've installed the plugin Gerrit Trigger on Jenkins cos I need to start automatically the building when a developer in the team pushes something on the repository (relative to a specific project). I followed the settings here:</p>
  
  <p><a href="https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger" rel="nofollow">https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger</a></p>
  
  <p>The test connection is ok. Anyway when something is pushed the building doesn't "trigger". The only thing I can see is:</p>
  
  <p>Under "Manage Jenkins" -> The connection to Gerrit is down! Check your settings and the Gerrit server.</p>
  
  <p>any idea?</p>
  
  <p>thanks</p>
  
  <p>randomize</p>
  
  <p>BTW I got this:</p>
  
  <p>BTW I got this: Command "git fetch -t git@github.com:somewhere/MyProject.git $GERRIT_REFSPEC" returned status code 128: fatal: Couldn't find remote ref $GERRIT_REFSPEC
  fatal: The remote end hung up unexpectedly</p>
  
  <pre><code> ERROR: Could not fetch from any repository
   FATAL: Could not fetch from any repository
   hudson.plugins.git.GitException: Could not fetch from any repository
  at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1008)
  at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968)
  at hudson.FilePath.act(FilePath.java:758)
  at hudson.FilePath.act(FilePath.java:740)
  at hudson.plugins.git.GitSCM.checkout(GitSCM.java:968)
  at hudson.model.AbstractProject.checkout(AbstractProject.java:1184)
  at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:537)
  at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:425)
  at hudson.model.Run.run(Run.java:1376)
  </code></pre>