让Windows slave(Java 7)连接到Linux master(Java 8)的问题

时间:2017-06-26 06:44:36

标签: networking jenkins jenkins-plugins hudson hudson-api

面对问题使windows slave连接到Linux master。 Linux master在Java 8上,windows slave在java 7上。我尝试通过在slave机器上启动slave代理进行连接,它显示连接一秒钟,但接下来又说终止了。

在从控制台连接时,以下是日志:

C:\Jenkins>java -jar slave.jar -jnlpUrl http://192.168.172.249:8080/jenkins/comp
uter/192.168.172.133ReconTomcatServer/slave-agent.jnlp

Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main createEngine
INFO: Setting up slave: 192.168.172.133ReconTomcatServer

Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.

Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.172.249:8080/jenkins/]

Jun 26, 2017 11:41:55 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver
 resolve
INFO: Remoting server accepts the following protocols: [JNLP-connect, CLI2-conne
ct, Ping, CLI-connect, JNLP4-connect, JNLP2-connect]

Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
  Agent address: 192.168.172.249
  Agent port:    41231
  Identity:      0a:71:17:09:ae:dc:64:9a:d4:55:ba:c7:c6:43:4a:2c

Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking

Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.172.249:41231

Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect

Jun 26, 2017 11:42:01 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 0a:71:17:09:ae:dc:64:9a:d4:55:ba:c7:c6:43:4a:2c


Jun 26, 2017 11:42:01 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected

Jun 26, 2017 11:42:02 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated

有什么我可以检查的东西。

按照以下链接中的所有步骤操作: Showing exception while connecting slave to master using headless jnlp

1 个答案:

答案 0 :(得分:0)

我认为这是由于java版本的差异而发生的。