当我尝试从终端执行作业时,它适用于one hour
而没有任何问题。当我尝试从Jenkins执行shell时,它只工作一分钟并停止执行。 Jenkins控制台输出的输出如下:
Creating folder path in /jenkins/workspace/load_test/scripts/loadtest/loadtest1
PWD is : /jenkins/workspace/load_test/scripts/loadtest
Running /jenkins/workspace/load_test/scripts/loadtest/loadtest1/testRestApi.sh
1495126268
1495129868
3600
Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information
Finished: SUCCESS
任何想法/建议让剧本从Jenkins工作运行一小时?
答案 0 :(得分:1)
您是否尝试使用BUILD_ID=dontKillMe
它通常用于守护进程。 https://wiki.jenkins-ci.org/display/JENKINS/ProcessTreeKiller但是这可以让你运行你的脚本