Add EST MS Teams Notifications for Rebase Jobs
[infra/cicd.git] / jjb / global / jjb-macros.yaml
index d9a37c502a1df8537728cd24371b59d61a78a827..bebfd0daff0d4ba48b03adefa2bbddafea34efa2 100644 (file)
     wrappers:
       - credentials-binding:
           - username-password-separated:
-              credential-id: nordix-eiffel-github-token
+              credential-id: nordixinfra-eiffel-username-personal-access-token
               username: NORDIXINFRA_GITHUB_USERNAME
               password: NORDIXINFRA_GITHUB_TOKEN
 
+# wrappers to use for jobs
+- wrapper:
+    name: nordix-gerrit-http-api-token
+    wrappers:
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: nordixinfra-nordix-gerrit-http-api-token
+              username: GERRIT_USER
+              password: GERRIT_API_KEY
+
 # timeout wrapper to use for jobs
 - wrapper:
     name: build-timeout
           num-to-keep: 100
           artifact-days-to-keep: 30
           artifact-num-to-keep: 100
+
+- property:
+    name: est-ms-teams-rebase-jobs-webhook
+    properties:
+      - office-365-connector:
+            webhooks:
+              - url: "${EST_MS_TEAMS_NORDIX_REBASE_JOBS_WEBHOOK}"
+                name: full
+                start-notification: true
+                notify-success: true
+                notify-aborted: true
+                notify-not-built: true
+                notify-unstable: true
+                notify-failure: true
+                notify-back-to-normal: true
+                notify-repeated-failure: true
+