Jenkins SSH timeout


问题如下:

Started by user carzone
Building in workspace /data/jenkins/workspace/153-test
SSH: Connecting from host [jenkins232]
SSH: Connecting with configuration [localtest(153-v3.0)] ...
SSH: EXEC: STDOUT/STDERR from command [sh /home/test/start-job.sh] ...
start ... 
SSH: Disconnecting configuration [localtest(153-v3.0)] ...
ERROR: Exception when publishing, exception message [Exec timed out or was interrupted after 120,000 ms]
Finished: UNSTABLE

使用Jenkins做定时任务集计,由于数据量的多少集计时间或多或少,之前数据比较少两分钟之内可以完成,后发现超过两分钟了SSH就timeout了。

解决办法很简单:

1,延长timeout时间如下,默认的timeout时间为120秒:

2,测试过程中发现及时timeout了调用的脚本也会执行完,只是在Jenkins看不到输出的日志。

3,如果Job会执行很长时间,也不想等timeout可以勾选[Exec in pty]选项

具体可参考:

http://stackoverflow.com/questions/11290540/jenkins-text-finder-unable-to-success-my-build/22011893#22011893

http://blog.csdn.net/u013066244/article/details/52788407

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM