• 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

  • 相关阅读:
    bzoj2763: [JLOI2011]飞行路线(分层图spfa)
    8.20noip模拟题
    8.19noip模拟题
    1046: [HAOI2007]上升序列(dp)
    bzoj1079: [SCOI2008]着色方案(dp)
    逆序对
    P1966 火柴排队(逆序对)
    NOIP 2015 DAY2
    8.15学校模拟
    差分
  • 原文地址:https://www.cnblogs.com/maxiaofang/p/6289092.html
Copyright © 2020-2023  润新知