我们有一个Jenkins作业,该作业会触发Jenkins节点中的Robot Framework测试。在测试运行期间,远程节点将重新启动,并且在PC重新启动后,Robot Framework将恢复测试。但是Jenkins作业失败并出现错误:
Agent went offline during the build
ERROR: Connection was broken: java.nio.channels.ClosedChannelException
at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179)
at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:721)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
是否有某种方法可以使Jenkins主服务器等待连接的节点再次联机?这样结果就可以在工作完成后在Jenkins中获得。