title: buildnumber-maven-plugin: 'git' is not recognized on Jenkins
body: <p>My maven build is working fine on a local computer, but is failing on the Jenkins integration server because of the following error:</p>
  
  <pre><code>[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
  [INFO] Working directory: D:\Jenkins\workspace\XXX\XXX
  [INFO] Storing buildNumber: null at timestamp: XXXX
  [WARNING] Cannot get the branch information from the git repository: 
  Detecting the current branch failed: 'git' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>As far as I understand, it's because <code>git</code> isn't in the <code>%PATH%</code> of my Jenkins, which seems wrong <code>git --version</code> works fine within a terminal in the Jenkins server.</p>
  
  <ul>
  <li><p>According to this <a href="https://stackoverflow.com/questions/5412651/jenkins-and-maven-buildnumber-plugin">Jenkins and maven-buildnumber-plugin</a>,
  the work-around for SVN is to use the <code>svnjava</code> implementation. Is there the same kind of work-around for git?</p></li>
  <li><p>Any ideas how I can fix the PATH for Jenkins?</p></li>
  </ul>
  
  <p>Thanks a lot!!</p>