Jenkins Slave 打印消息 Cannot contact slave-host: java.io.IOException: Remote call on Channel to /10.0.2.2 failed
Jenkins Slave Prints message Cannot contact slave-host: java.io.IOException: Remote call on Channel to /10.0.2.2 failed
我有 Jenkins 2 Master 和 Jenkins 2 Slave。当我开始构建时,它是成功的,但是当我检查构建控制台时,我可以看到多行消息如下:
Cannot contact slave-host: java.io.IOException: Remote call on Channel
to /10.0.2.2 failed
配置如下:
詹金斯大师 - Docker
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
Jenkins 奴隶 - 运行 Oracle Linux
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
执行 shell 命令时会抛出错误消息。
Jenkins 文件的一部分
stage("deploy") {
node("slave-host") {
step([$class: 'WsCleanup'])
app_home = "/apps/tomcat"
tomcat_home = "tomcat-server"
id = 'package'
sh "${app_home}/${tomcat_home}/bin/shutdown.sh &"
unstash id
sh "unzip *.zip"
sh "cp *.war ${app_home}/wars"
}
}
我是不是做错了什么?
this Jenkins ticket reported that they were able to get rid of the error by downgrading the "Pipeline: Nodes and Processes" plugin in Jenkins to 2.8 - available from here 中的一个用户。通过这样做,我也能够摆脱这个问题。不幸的是,我安装的许多其他插件都依赖于 2.10 版。我不热衷于对所有这些进行后调,所以我想我将不得不忍受这个烦恼,直到插件维护者提供正式修复为止。希望那会很快。
我有 Jenkins 2 Master 和 Jenkins 2 Slave。当我开始构建时,它是成功的,但是当我检查构建控制台时,我可以看到多行消息如下:
Cannot contact slave-host: java.io.IOException: Remote call on Channel to /10.0.2.2 failed
配置如下:
詹金斯大师 - Docker
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
Jenkins 奴隶 - 运行 Oracle Linux
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
执行 shell 命令时会抛出错误消息。
Jenkins 文件的一部分
stage("deploy") {
node("slave-host") {
step([$class: 'WsCleanup'])
app_home = "/apps/tomcat"
tomcat_home = "tomcat-server"
id = 'package'
sh "${app_home}/${tomcat_home}/bin/shutdown.sh &"
unstash id
sh "unzip *.zip"
sh "cp *.war ${app_home}/wars"
}
}
我是不是做错了什么?
this Jenkins ticket reported that they were able to get rid of the error by downgrading the "Pipeline: Nodes and Processes" plugin in Jenkins to 2.8 - available from here 中的一个用户。通过这样做,我也能够摆脱这个问题。不幸的是,我安装的许多其他插件都依赖于 2.10 版。我不热衷于对所有这些进行后调,所以我想我将不得不忍受这个烦恼,直到插件维护者提供正式修复为止。希望那会很快。