summaryrefslogtreecommitdiffstats
path: root/jjb/global
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-08-17 06:07:41 +0100
committerMarkos Chandras <mchandras@suse.de>2017-08-17 06:10:42 +0100
commit7576c18142c9ee6781d5c349febb9ec7363238a0 (patch)
treefa04845874c0e0717b6ccad46662cabbccacacd3 /jjb/global
parent11a33235be45d9562d4a77487b6318a3dbd83f4f (diff)
jjb: global: releng-macros: Add timeout wrapper
Add new timeout wrapper which can be used to kill a job if it take too long to finish Change-Id: I15a20fc92ea7855d11983b5734064aace138a2b5 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'jjb/global')
-rw-r--r--jjb/global/releng-macros.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml
index 89a38029e..75fe8b3c3 100644
--- a/jjb/global/releng-macros.yml
+++ b/jjb/global/releng-macros.yml
@@ -165,6 +165,14 @@
- 'd42411ac011ad6f3dd2e1fa34eaa5d87f910eb2e'
- wrapper:
+ name: build-timeout
+ wrappers:
+ - timeout:
+ timeout: '{timeout}'
+ timeout-var: 'BUILD_TIMEOUT'
+ fail: true
+
+- wrapper:
name: fix-workspace-permissions
wrappers:
- pre-scm-buildstep: