Timeout builds

This commit is contained in:
Dan Hawkins 2018-09-17 22:28:42 +01:00
commit efdae69ce8

View file

@ -8,6 +8,7 @@ def doDisplayLeftovers() {
ps aux | grep "eclipse"
ps aux | grep "make"
ps aux | grep "arm-linux"
ps aux | grep "sh"
"""
}
}
@ -135,11 +136,14 @@ def doBuild(apps, ds5folder, toolchainfolder, ds5shellcommand, buildcommand, sou
doRegisterToolchain(ds5folder, toolchainfolder)
echo "Build command: ${ds5shellcommand} \'${buildcommand} -no-indexer ${buildtype} \"${project}/${build_variant}\"\'"
if (isUnix()) {
sh """
echo Start time: `date`
${ds5shellcommand} \'${buildcommand} -no-indexer ${buildtype} \"${project}/${build_variant}\"\'
echo End time: `date`
"""
timeout(time: 5, unit: MINUTES) {
sh """
echo Start time: `date`
${ds5shellcommand} \'${buildcommand} -no-indexer ${buildtype} \"${project}/${build_variant}\"\'
echo End time: `date`
"""
}
sleep(time: 4, unit: SECONDS)
}
else {
bat """