-
Bug
-
Resolution: Not A Defect
-
Blocker
-
None
With SSH slave plugin, I have the following issue:
On the target machine, we still have JDK 1.7 as default java (the software running is rather old). As Jenkins needs 1.8, it is installed in addition to this. I then tried to start the slave, with the following output:
(some ugly shell script code here...)
[06/11/18 16:11:02] [SSH] Starting sftp client.
[06/11/18 16:11:02] [SSH] Copying latest slave.jar...
[06/11/18 16:11:04] [SSH] Copied 767,078 bytes. Expanded the channel window size to 4MB
[06/11/18 16:11:04] [SSH] Starting slave process: cd "/home/baker/jenkins" && /opt/jdk1.8.0_162/bin/java -Xmx1572m -jar slave.jar
bash: /opt/jdk1.8.0_162/bin/java: No such file or directory Slave JVM has terminated.
Exit code=127
That is wondering me, because directory /opt/jdk1.8.0_162 doen't even exist. I also tried to set the JAVA_HOME in the config of the node and also tried to add the JDK7 tool location, but that does not change anything. It would be great if I could configure it here.
- is related to
-
JENKINS-47586 ssh-slaves plugin tries to install latest JDK from Oracle's website and must be updated for every new JDK release
- Resolved