I have a Jenkinsfile pipeline build that uses our maven project. I also have configured latest jdk8 (1.8.0_144) in the Global Tool Configuration. When building the project on master node, the correct JDK is picked up:
*15:11:49* + /export/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3.3.x/bin/mvn --batch-mode --show-version [more maven args...] *15:11:49* Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)*15:11:49* Maven home: /export/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3.3.x*15:11:49* Java version: 1.8.0_144, vendor: Oracle Corporation*15:11:49* Java home: /export/jenkins/tools/hudson.model.JDK/jdk8/jre*15:11:49* Default locale: en_US, platform encoding: UTF-8*15:11:49* OS name: "linux", version: "3.10.0-514.26.2.el7.x86_64", arch: "amd64", family: "unix" However when trying to build the same project on another build node, the build uses the default JDK installed on the build node: The Jenkins slave nodes are configured as -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CABwQARuYz4UhtOH7w%3DyxRXU-rrhvofsZ6mkaqOOGi4h2KJvW%3DQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
