title: Why is Jenkins ignoring the %PATH% variable when using MSBuild?
body: <p>I am trying to use Jenkins to compile my MSBuild project created with Delphi. I have the MSBuild plugin installed into Jenkins and configured.  I'm choosing the specific configuration for my build job.</p>
  
  <p>I have set all the environmental variables in Jenkins that are required by the Delphi compiler (from rsvars.bat for you Delphi types.)</p>
  
  <p>The project compiles just fine on the command line.  If I do it on the command line, MSBuild reports a nice big fat PATH (the correct one) as part of the command line it uses to call the Delphi compiler.</p>
  
  <p>However, when I try to use it with Jenkins, the result is quite different:</p>
  
  <pre><code>C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\bin\dcc32.exe -$D- -$L- -$Y- --no-config -B -Q -AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DRELEASE -K00400000   HTMLWriterTestApp.dpr   
    Embarcadero Delphi for Win32 compiler version 22.0
    Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
  </code></pre>
  
  <p>Noet the complete lack of a path, or any other information about were to find what the compiler needs.  This information is there when I run from the command line.</p>
  
  <p>Can anyone think of any reason why Jenkins is failing to get the correct PATH information?</p>