Here is what I am doing:
- Jenkins (v.1638) master runs on Windows 7
- A node/slave (agent) runs on Linux (Ubuntu 14.04)
- JDK 6 (Oracle jdk1.6.0_45) is used
- Maven 2.2.1 is used
Next message is partially copied from console output when I kick off project build:
[webapp] $ /usr/local/jdk1.6.0_45/bin/java -cp /projects/maven-agent.jar:/projects/classworlds.jar hudson.maven.agent.Main /usr/local/apache-maven-2.2.1 /projects/slave.jar /projects/maven-interceptor.jar 58848 /projects/maven2.1-interceptor.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
ERROR: [JENKINS-18403] JDK 5 not supported to run Maven; retrying with slave Java and setting compile/test properties to point to /usr/local/jdk1.6.0_45
Established TCP socket on 59443
maven-agent.jar already up to date
classworlds.jar already up to date
maven-interceptor.jar already up to date
maven2.1-interceptor.jar already up to date
[webapp] $ /projects/jdk1.7.0_79/jre/bin/java -cp /projects/maven-agent.jar:/projects/classworlds.jar hudson.maven.agent.Main /usr/local/apache-maven-2.2.1 /projects/slave.jar /projects/maven-interceptor.jar 59443 /projects/maven2.1-interceptor.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
I got confused by the output:
- my Linux doesn't have JDK 5. Why does Jenkins report this error?
- why are maven agent run twice? one by jdk1.6.0_45 and one by jdk1.7.0_79
- jdk1.7.0_79 is configured in the field of JavaPath of Node (for running slave agent in Linux). why is it picked up to execute maven agent?
I am newbie to Jenkins and couldn't find answers to my questions.
Please explain why it works this way. I appreciate it very much for your help.