Warning: no key algorithms provided; JENKINS-42959 disabled
[02/28/18 15:19:44] [SSH] Opening SSH connection to 172.17.20.177:22.
[02/28/18 15:19:44] [SSH] SSH host key matches key in Known Hosts file. Connection will be allowed.
[02/28/18 15:19:44] [SSH] 认证成功。
[02/28/18 15:19:44] [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]=”1” [4]=”release” [5]=”x86_64-redhat-linux-gnu”)
BASH_VERSION=’4.2.46(1)-release’
DIRSTACK=()
EUID=0
GROUPS=()
HOME=/root
HOSTNAME=localhost
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=5526
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=’172.17.20.140 56282 22’
SSH_CONNECTION=’172.17.20.140 56282 172.17.20.177 22’
TERM=dumb
UID=0
USER=root
XDG_RUNTIME_DIR=/run/user/0
XDG_SESSION_ID=8991
_=/etc/bashrc
[02/28/18 15:19:44] [SSH] Checking java version of java
Couldn’t figure out the Java version of java
bash: java: 未找到命令

[02/28/18 15:19:44] [SSH] Checking java version of /usr/bin/java
Couldn’t figure out the Java version of /usr/bin/java
bash: /usr/bin/java: 没有那个文件或目录

[02/28/18 15:19:44] [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: 没有那个文件或目录

[02/28/18 15:19:44] [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: 没有那个文件或目录

[02/28/18 15:19:44] [SSH] Checking

遇到这个错误是因为配置节点时需要指定jdk的路径
在这里插入图片描述

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐