-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: core
-
Environment:Linux 2.6.32-358.el6.x86_64 Java 1.8.0_111
Somewhere between builds 2.49 and 2.100 the JAVA_HOME environment variable is now using the system default instead of the path for a selected JDK.
This seems similar to JENKINS-6763 or JENKINS-15288 but these seems a lot older and this is newly observed behaviour.
From the environment variables pages:
Date: 2018-01-04 14:11:03, Version: 2.49
JAVA_HOME /opt/IBM/iib/common/jdk
Date: 2018-01-12 16:44:4, Version: 2.100
JAVA_HOME $WEBSPHERE_HOME/java
As a work-around I have used the Env Inject plugin to explicitly set the JAVA_HOME environment variable for each job that needs a non-default JDK.