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