title: Jenkins Git Plugin not pulling latest changes before building job
body: <p>I am working with Jenkins CI and am trying to properly configure my jobs to use git.</p>
  
  <p>I have the git plugin installed and configured for one of my jobs. When I build the job, I expect it to pull the latest changes for the branch I specify and then continue with the rest of the build process (e.g., unit tests, etc.).</p>
  
  <p>When I look at the console output, I see</p>
  
  <pre><code>&gt; git fetch --tags --progress ssh://gerrit@git-dev/Util +refs/heads/*:refs/remotes/origin/*
   &gt; git rev-parse origin/some_branch^{commit}
  Checking out Revision &lt;latest_SHA1&gt; (origin/some_branch)
   &gt; git config core.sparsecheckout
   &gt; git checkout -f &lt;latest_SHA1&gt;
   &gt; git rev-list &lt;latest_SHA1&gt;
  </code></pre>
  
  <p>I see that the plugin fetches and checks out the proper commit hash, but when the tests run it seems as though the repo wasn't updated at all.
  If I go into the repository in Jenkins, I see there that the latest changes were never pulled. </p>
  
  <p>Shouldn't it pull before it tries to build? </p>
  
  <p>I have git 1.8.5 installed on my Jenkins machine, which is a recommended version.
  <a href="https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin">https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin</a></p>
  
  <p>After checking other similar sounding questions on SO, their answers weren't helpful for my problem.</p>