[08/07/18 17:53:55] [SSH] Checking java version of /root/.jenkins/jdk/bin/java Couldn't figure out the Java version of /root/.jenkins/jdk/bin/java bash: /root/.jenkins/jdk/bin/java: No such file or directory Linux vicky 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Installing JDK jdk-8u144-oth-JPR Downloading JDK from http://download.oracle.com/otn/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gzOracle now requires Oracle account to download previous versions of JDK. Please specify your Oracle account username/password.java.io.IOException: Could not find any known supported java version (a minimum level of 8 is required) in [java, /usr/bin/java, /usr/java/default/bin/java, /usr/java/latest/bin/java, /usr/local/bin/java, /usr/local/java/bin/java, /root/.jenkins/jdk/bin/java], and we also failed to install JDK as a fallback at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:954) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:836) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:820) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: hudson.AbortException: Unable to install JDK unless a valid Oracle account username/password is provided in the system configuration. at hudson.tools.JDKInstaller.locate(JDKInstaller.java:524) at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:1075) at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:951) ... 6 more [08/07/18 17:53:57] Launch failed - cleaning up connection [08/07/18 17:53:57] [SSH] 连接关闭。
遇到过,直接用这个命令apt install default-jre
我之前用的apt-get或者wget都不好用,就上面这个命令,执行后,输入jave -version可以看见java版本
jdk没配置到到这个目录
这个问题我也遇到了。解决的好困难啊