首页 > 其他分享 >Jenkins 添加节点

Jenkins 添加节点

时间:2023-05-06 15:56:06浏览次数:41  
标签:bin java version 46 添加 usr Jenkins 节点 SSH

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

相关文章

  • LeetCode 24. 两两交换链表中的节点
    题目链接:LeetCode24.两两交换链表中的节点本题不涉及算法,直接模拟就可以了,但是模拟的过程中,最好进行画图演示,不然容易出错。想要达到两两交换链表中节点的效果,就需要按照以下三个步骤进行。同时为了将头结点和非头结点统一处理,因此新建一个虚拟头结点,初始时,cur指向虚拟头结......
  • Winform实现给按钮添加图片效果
    2021-08-23一、实现效果二、实现方法步骤①准备好需要给按钮添加图片的素材 ②打开【工具箱】找到【Button】拖拽到Winform界面③选中刚才拖入winfrom界面的【button1】按钮查看设置面板,找到Image属性设置按钮图片④调节按钮大小和设置图片与文字方向⑤最终的效......
  • 配置wordpress:添加分享到QQ空间功能(wordpress 6.2)
    一,添加代码:1,代码:<atarget="_blank"href='http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title=<?phpthe_title();?>&desc=&summary=&site=&pics=&url=<?phpechourlencode(get_permalink());?>�......
  • 2023-05-05:给定一个无向、连通的树 树中有 n 个标记为 0...n-1 的节点以及 n-1 条边
    2023-05-05:给定一个无向、连通的树树中有n个标记为0...n-1的节点以及n-1条边。给定整数n和数组edges,edges[i]=[ai,bi]表示树中的节点ai和bi之间有一条边。返回长度为n的数组answer,其中answer[i]:树中第i个节点与所有其他节点之间的距离之和。输入......
  • 配置wordpress:添加分享到豆瓣功能(wordpress 6.2)
    一,代码:1,代码:<atarget="_blank"href='https://www.douban.com/share/service?href=<?phpthe_permalink();?>&name=<?phpthe_title();?>&text=&image=&starid=0&aid=0&style=11'><imgid=&qu......
  • Jenkins 执行Docker build错误Got permission denied while trying to connect to the
    问题: 解决方法:这个报错为权限问题1.把jenkins用户,加到docker用户组 #如果没有docker用户组,先创建用户组:groupadddocker#添加jenkins用户到用户组:sudousermod-a-Gdockerjenkins-a<追加>必须与-G选项一起使用,把用户追加到某些组中。-G<群组>修改用户所属的......
  • GitLab + Jenkins 实现持续集成CI
      1软件版本2基础环境安装2.1docker 安装yuminstall-ydocker-ce-20.10.16 systemctlstartdocker&&systemctlenabledocker   dockerversion  2.2docker-compose安装curl-Lhttps://get.daocloud.io/docker/compose/releases/download/1.29.2/......
  • DataTable添加数据
       在ASP.NET中添加数据到DataTable可以使用以下步骤: 1.创建DataTable对象: DataTabledt=newDataTable(); 2.添加列名: dt.Columns.Add("列名1");dt.Columns.Add("列名2");dt.Columns.Add("列名3"); 3.添加行数据: DataRowrow1=dt.NewRow();ro......
  • 通过跳转至系统通讯录方式,添加新的联系人,或编辑已有联系人
    ·需求:将联系人信息通过跳转至系统通讯录联系人编辑界面的方式,添加新的联系人,或是更新到已有联系人。联系人信息主要是姓名和电话号码,其中电话号码是list列表,可能为多个号码。·重点:如何将信息更新至已有联系人中·参考文章:https://juejin.cn/post/6953963082339057672·实......
  • C# 图片添加水印
    具体实现///<summary>///图片添加水印///</summary>///<paramname="imgPath">需要添加水印的图片地址</param>///<paramname="outPath">添加水印后图片输出地址</param>///<param......