title: Jenkins - 'mvn' is not recognized as an internal or external command, operable program or batch file
body: <p>I have jenkins installed with the maven plugin.</p>
  
  <p>I have maven installed on the same jenkins machine, and I'm able to run <code>mvn -version</code></p>
  
  <pre><code>C:\Users\admin&gt;mvn -version
  Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:4
  7+08:00)
  Maven home: C:\maven\apache-maven-3.3.9\bin\..
  Java version: 1.8.0_91, vendor: Oracle Corporation
  Java home: C:\Program Files\Java\jdk1.8.0_91\jre
  Default locale: en_US, platform encoding: Cp1252
  OS name: "windows server 2012 r2", version: "6.3", arch: "amd64", family: "dos"
  </code></pre>
  
  <p>However, when I trigger a maven build, I'm getting this error</p>
  
  <pre><code>Checking out Revision 04eca9e1337cc307bf435d182e52c82469f27f33 (refs/remotes/origin/master)
   &gt; git.exe config core.sparsecheckout # timeout=10
   &gt; git.exe checkout -f 04eca9e1337cc307bf435d182e52c82469f27f33 
   &gt; git.exe rev-list 04eca9e1337cc307bf435d182e52c82469f27f33  # timeout=10
  [workspace] $ cmd.exe /C "mvn -f pom.xml &amp;&amp; exit %%ERRORLEVEL%%"
  'mvn' is not recognized as an internal or external command,
  operable program or batch file.
  Build step 'Invoke top-level Maven targets' marked build as failure
  Finished: FAILURE
  </code></pre>