Jenkins ssh slave disconnect to make the task continue perform

自古美人都是妖i 提交于 2019-12-06 15:57:30

Adding a keepAlive option is a feature request since 2014

As proposed workarounds, this ticket includes:

  1. Change the /etc/ssh/ssh_config by appending the following line to the end of this file. This tells the ssh client to send nop command periodically to avoid the ssh connection being disconnected.
    The unit of 80 is seconds. You may tune this parameter based on your network condition.
ServerAliveInterval 80
  1. In the Jenkins slave configuration page, change the Launch method to "Launch slave via execution of command on the Master". See the Jenkins built-in help for more details.

So far, I haven't see any issues in this configuration. Hope this helps.

See also "Remoting issues / SSH slaves".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!