我试图让一个从设备连接到两个主设备。然而,当我运行Jenkins JNLP时,我一直得到套接字错误。有人有经验吗?
C:\Documents and Settings\Administrator>java -jar "C:\Documents and Settings\Adm
inistrator\Desktop\test2-slave.jar" -jnlpUrl http://test2.site.com:8080/com
puter/Slave1/slave-agent.jnlp -secret b4161b716c31a8985d8eb2760fdc6a404693bbf86c
7262973554877759ea1db1
Dec 25, 2013 10:50:16 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Dec 25, 2013 10:50:16 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://test2.site.com:8080/]
Dec 25, 2013 10:50:16 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to test2.site.com:7777
Dec 25, 2013 10:50:47 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to test2.site.com:7777 (retrying:2)
java.net.ConnectException: Connection timed out: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at hudson.remoting.Engine.connect(Engine.java:333)
at hudson.remoting.Engine.run(Engine.java:222)
字符串
我知道我可以在端口8080上连接到Jenkins盒。(我检查了)。
1条答案
按热度按时间z9ju0rcb1#
你需要有两个单独的jar文件和两个不同的主密钥。我在问题中只看到一个。一旦你有了,你可以一个接一个地运行它们,这样同一个从设备就可以连接到两个不同的主设备。另外,重要的是要注意,你需要Java版本> 7。