我已经设置了一个 Jenkins Master (CentOS 7) 和一个运行项目的节点 (开发环境,Windows 7)。我的项目要求是 Java 1.6。
在我的 Windows 7 和 Java 1.7 机器上,我可以连接管理 jenkins -> mng 节点。
当我运行如下命令时:
java -jar slave.jar -jnlpUrl http://192.168.100.54:8888/computer/Win7/slave-agent.jnlp
输出如下:
Feb 1, 2016 6:45:57 AM hudson.remoting.jnlp.Main createEngine
INFO: Setting up slave: Win7
Feb 1, 2016 6:45:57 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Feb 1, 2016 6:45:57 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.100.54:8888/]
Feb 1, 2016 6:45:57 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Feb 1, 2016 6:45:57 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.100.54:37876
Feb 1, 2016 6:45:57 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP2-connect
Feb 1, 2016 6:45:57 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Feb 1, 2016 6:45:57 AM hudson.remoting.SynchronousCommandTransport$ReaderThread
run
SEVERE: I/O error in channel channel
java.io.IOException: Unexpected termination of the channel
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
Feb 1, 2016 6:45:57 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
如果有任何遗漏,请告诉我。