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

前端 未结 7 563
我在风中等你
我在风中等你 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:20

    Couldn't get other it to work by the other answers. Ended up setting the variable in my slave node launcher (batch) script:

    SET PATH=C:\cygwin64\bin;%PATH%
    java -jar agent.jar -jnlpUrl ...
    

提交回复
热议问题