I have a Jenkins Slave (A Windows PC) which has the JAVA_HOME
environment variable. I updated the Java version on the Slave so I also updated the Environment Variable.
When I look at the system properties of this Slave via Jenkins web interface the JAVA_HOME
property is reported as the old one.
Running echo %PATH%
on the Windows PC shows the correct values.
Running println System.getenv("PATH")
on the Jenkins Node script console for the Slave shows the old JAVA_HOME value.
I have tried to delete and add the Slave again and restarted Jenkins server. Still the old value is not updated.
Any thoughts?
This is a bug in Jenkins: https://issues.jenkins-ci.org/browse/JENKINS-27739
3 ways to solve (I have personally confirmed each):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With