How to set the PATH environment variable in Jenkins configuration on Windows?

前端 未结 7 545
我在风中等你
我在风中等你 2020-11-30 13:35

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

7条回答
  •  独厮守ぢ
    2020-11-30 14:15

    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.

提交回复
热议问题