Add EST MS Teams Notifications for Rebase Jobs
[infra/cicd.git] / jjb / onap / global-templates-onap-rebase.yaml
index 6c297acbe59cdad21b00170b2060d51eeea512b1..180f851a28c884d1a24f5dae436078380d3a18bd 100644 (file)
@@ -1,20 +1,19 @@
 - job-template:
-    name: 'onap-{project-name}-{stream}-rebase'
-
-    node: infra-build01-ubuntu1804
-
+    name: 'onap-{project-name}-rebase'
+    node: infra-ubuntu2004
     disabled: false
-
     concurrent: false
 
     properties:
       - logrotate
+      - est-ms-teams-rebase-jobs-webhook
 
     parameters:
-      - project-parameters:
-          project: '{project}'
-          branch: '{branch}'
       - onap-gerrit-parameters
+      - string:
+          name: PROJECT
+          default: '{project}'
+          description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
       - string:
           name: NORDIX_REMOTE
           default: 'ssh://infra@gerrit.nordix.org:29418/onap/{project}.git'
     scm:
       - git-scm:
           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
-          branch: '{branch}'
+          branch: 'master'
           refspec: ''
-          wipe_workspace: true
-          clean_before: false
+          wipe_workspace: false
+          clean_before: true
 
     triggers:
       - onap-gerrit-trigger-change-merged:
           project: '{project}'
-          branch: '{branch}'
+          branch: '**'
           files: '**'
       - timed: "@midnight"
 
     wrappers:
       - build-timeout:
           timeout: 10
+      - ssh-agent-credentials:
+          users:
+            - 'nordixinfra-nordix-gerrit-ssh'
 
     builders:
       - shell:
@@ -46,3 +48,7 @@
     publishers:
       - notify-slack:
           slack-channel: '#infra'
+          notify-start: false
+          notify-success: false
+          notify-failure: true
+          notify-back-to-normal: true