SSHLauncher{host='192.168.19.92', port=22, credentialsId='a19f38a2-6fb5-404b-9a18-84f8db88cd60', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true} [05/06/23 15:46:28] [SSH] Opening SSH connection to 192.168.19.92:22. [05/06/23 15:46:28] [SSH] WARNING: SSH Host Keys are not being verified. Man-in-the-middle attacks may be possible against this connection. [05/06/23 15:46:28] [SSH] Authentication successful. [05/06/23 15:46:29] [SSH] The remote user's environment is: BASH=/usr/bin/bash BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="2" [2]="46" [3]="2" [4]="release" [5]="x86_64-redhat-linux-gnu") BASH_VERSION='4.2.46(2)-release' DIRSTACK=() EUID=0 GROUPS=() HOME=/root HOSTNAME=dbbak HOSTTYPE=x86_64 ID=0 IFS=$' \t\n' LANG=zh_CN.UTF-8 LESSOPEN='||/usr/bin/lesspipe.sh %s' LOGNAME=root MACHTYPE=x86_64-redhat-linux-gnu MAIL=/var/mail/root OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin PIPESTATUS=([0]="0") PPID=16302 PS4='+ ' PWD=/root SELINUX_LEVEL_REQUESTED= SELINUX_ROLE_REQUESTED= SELINUX_USE_CURRENT_RANGE= SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='192.168.19.34 47728 22' SSH_CONNECTION='192.168.19.34 47728 192.168.19.92 22' TERM=dumb UID=0 USER=root XDG_RUNTIME_DIR=/run/user/0 XDG_SESSION_ID=41 _=/etc/bashrc Checking Java version in the PATH bash: java: 未找到命令 Java is not in the PATH nor configured with the javaPath setting, Jenkins will try to guess where is Java, this guess will be removed in the future. :Launch agents via SSH [05/06/23 15:46:29] [SSH] Checking java version of /jenkins_home/jdk/bin/java Couldn't figure out the Java version of /jenkins_home/jdk/bin/java bash: /jenkins_home/jdk/bin/java: 没有那个文件或目录 [05/06/23 15:46:29] [SSH] Checking java version of java Couldn't figure out the Java version of java bash: java: 未找到命令 [05/06/23 15:46:29] [SSH] Checking java version of /usr/bin/java Couldn't figure out the Java version of /usr/bin/java bash: /usr/bin/java: 没有那个文件或目录 [05/06/23 15:46:29] [SSH] Checking java version of /usr/java/default/bin/java Couldn't figure out the Java version of /usr/java/default/bin/java bash: /usr/java/default/bin/java: 没有那个文件或目录 [05/06/23 15:46:29] [SSH] Checking java version of /usr/java/latest/bin/java Couldn't figure out the Java version of /usr/java/latest/bin/java bash: /usr/java/latest/bin/java: 没有那个文件或目录 [05/06/23 15:46:29] [SSH] Checking java version of /usr/local/bin/java Couldn't figure out the Java version of /usr/local/bin/java bash: /usr/local/bin/java: 没有那个文件或目录 [05/06/23 15:46:29] [SSH] Checking java version of /usr/local/java/bin/java Couldn't figure out the Java version of /usr/local/java/bin/java bash: /usr/local/java/bin/java: 没有那个文件或目录 java.io.IOException: Java not found on hudson.slaves.SlaveComputer@77241036. Install Java 8 or Java 11 on the Agent. at hudson.plugins.sshslaves.JavaVersionChecker.resolveJava(JavaVersionChecker.java:83) at hudson.plugins.sshslaves.SSHLauncher.lambda$launch$0(SSHLauncher.java:453) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) [05/06/23 15:46:29] Launch failed - cleaning up connection [05/06/23 15:46:29] [SSH] Connection closed.
标签:bin,java,version,46,添加,usr,Jenkins,节点,SSH From: https://www.cnblogs.com/ruiy/p/17377619.html