Timeout builds
This commit is contained in:
parent
488454ae61
commit
efdae69ce8
1 changed files with 9 additions and 5 deletions
|
|
@ -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 """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue