美文网首页持续集成CI(gitlab+gerrit+jenkins)
jenkins添加类ubuntu/centos节点报错

jenkins添加类ubuntu/centos节点报错

作者: 青纹刀狼 | 来源:发表于2019-04-09 18:44 被阅读39次

    前言:在jenkins添加ubuntu节点,发现启动代理报错

    以下是报错:

    [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: No such file or directory

    。。。。。。

    Could not find any known supported java version

    Unable to install JDK unless a valid Oracle account username/password is provided in the system configuration.

    以下是解决方法:

    1.在添加节点界面,选择高级

    2.在java路径下面,添加节点的jdk位置,并保存

    效果:点击启动代理,成功连接

    相关文章

      网友评论

        本文标题:jenkins添加类ubuntu/centos节点报错

        本文链接:https://www.haomeiwen.com/subject/kxkiiqtx.html