X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fglobal%2Fjjb-macros.yaml;h=a14b0577f54f1264c4d06046bdedcac0e06dd36c;hb=refs%2Fchanges%2F32%2F332%2F1;hp=3de22ee034a4ef7edb49b42585d90cb873d03a56;hpb=d48d83540ec582301ada22bda0249098d4695181;p=infra%2Fcicd.git diff --git a/jjb/global/jjb-macros.yaml b/jjb/global/jjb-macros.yaml index 3de22ee0..a14b0577 100644 --- a/jjb/global/jjb-macros.yaml +++ b/jjb/global/jjb-macros.yaml @@ -206,3 +206,20 @@ 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 + +- publisher: + name: notify-slack + publishers: + - slack: + room: '{slack-channel}' + notify-failure: True + notify-back-to-normal: True