When I run my build process on Windows Server 2008, it fails with the error message like
Cannot run program \"foo\": CreateProcess: error=2, The syste
It needs to be "Path", not "PATH".
Jenkins treats this special variable in a case-sensitive way, and only "Path" is recognized as being the path variable. "PATH" looks to jenkins like a generic environment variable, even on Windows.