Add global jjb macro for slack notifications 08/308/1
authorFatih Degirmenci <fdegir@gmail.com>
Thu, 31 Jan 2019 17:48:58 +0000 (18:48 +0100)
committerFatih Degirmenci <fdegir@gmail.com>
Thu, 31 Jan 2019 17:48:58 +0000 (18:48 +0100)
Change-Id: Ia8084335c0eaed8cd0bcb679ce6b6c38d9350634

jjb/global/jjb-macros.yaml

index cedcea1b5113f4b43f9c68c15e733387a70ab214..a14b0577f54f1264c4d06046bdedcac0e06dd36c 100644 (file)
           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