Add global macro for build-timeout 96/296/1
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 29 Jan 2019 09:43:13 +0000 (10:43 +0100)
committerFatih Degirmenci <fdegir@gmail.com>
Tue, 29 Jan 2019 09:43:13 +0000 (10:43 +0100)
Change-Id: Ieb80cfe49ce5e24d92c7240b7db60496d5131e24

jjb/global/jjb-macros.yaml

index 3de22ee034a4ef7edb49b42585d90cb873d03a56..cedcea1b5113f4b43f9c68c15e733387a70ab214 100644 (file)
               credential-id: nordixinfra-jjb-creds
               username: JJB_USERNAME
               password: JJB_USERTOKEN
+
+# timeout wrapper to use for jobs
+- wrapper:
+    name: build-timeout
+    wrappers:
+      - timeout:
+          timeout: '{timeout}'
+          timeout-var: 'BUILD_TIMEOUT'
+          fail: true