简体   繁体   中英

Jenkins pipeline on master stuck when slave reboots

I have jenkins linux master and windows 7 slave that is using java webstart (JNLP: agent.jar) in user session (started from windows task scheduler). Problem is that I have to reboot slave (also hibernate, sleep etc.) during test run, and after slave reboots pipeline on master is stuck forever. Ie Slave reconnects and is visible as online, but in job console i can only see error from disconnection and circle animation:

Cannot contact CORNER5-W7: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@4d8aa8ce:CORNER5-W7": Remote call on CORNER5-W7 failed. The channel is closing down or has closed down

How can I make it resume pipeline after slave reconnects? I thought it was jenkins feature to auto-detect slave is back online and to resume work?

显示詹金斯控制台的 gif

Please try to use JNLP agents which would work seamlessly for your use case. you create agent.jar from master and run it on slave machine in the background or as a windows service. As the connection is initiated from agent --> master, slave will keep reconnecting to the master if master is down and vice-versa.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM