jjb: global: releng-macros: Add timeout wrapper 69/39469/1
authorMarkos Chandras <mchandras@suse.de>
Thu, 17 Aug 2017 05:07:41 +0000 (06:07 +0100)
committerMarkos Chandras <mchandras@suse.de>
Thu, 17 Aug 2017 05:10:42 +0000 (06:10 +0100)
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>
jjb/global/releng-macros.yml

index 89a3802..75fe8b3 100644 (file)
             users:
                 - 'd42411ac011ad6f3dd2e1fa34eaa5d87f910eb2e'
 
+- wrapper:
+    name: build-timeout
+    wrappers:
+      - timeout:
+          timeout: '{timeout}'
+          timeout-var: 'BUILD_TIMEOUT'
+          fail: true
+
 - wrapper:
     name: fix-workspace-permissions
     wrappers: