1、/usr/local/jdk1.8.0_191/ is not a directory on the Jenkins master (but perhaps it exists on some agents)

 

    /usr/local/jdk1.8.0_191/目录不存在,检测Jenkins主机JDK的安装目录是否正确。

2、java: command not found

  Jenkins将SpringBoot应用发送了SSH远程服务器上后,执行远程服务器上.sh脚本报错,找不到java命令行。解决方式可在目标主机上建立软连接

ln -s /usr/local/jdk1.8.0_191/bin/java /usr/bin/

 

posted on 2019-11-14 11:57  玄同太子  阅读(4657)  评论(0编辑  收藏  举报