I have a Jenkins master and several nodes. Some jobs running on Windows give me this error message:
\Java\jdk1.8.0_172\jre\bin"" was unexpected at this time.
These jobs run without problems on a Windows system itself, but not when running them withing Jenkins. So I looked a little bit deeper and found out, that in the node information, I can see this value for java.library.path
under jenkinsserver/computer/node/systemInfo
(as an example):
C:\Program Files\Java\jre1.8.0_172\bin;C:\Windows\Sun\Java\bin;
C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;
C:\Users\bsadmin\AppData\Local\Microsoft\WindowsApps;"C:\Program Files\Java\jre1.8.0_172\bin";.
I think, this error comes from the last part: "C:\Program Files\Java\jre1.8.0_172\bin"
. I see this on every windows slave machine.
Where does this value come from? Is it possible, to disable it somehow?
EDIT
Here is a picture of what I mean: