INFRA: Update the slack options for projects
[infra/cicd.git] / jjb / opendaylight / global-templates-opendaylight-rebase.yaml
index 0f1c5c7cfb89fdb12a8470ee9ec5f02c5ba4ca7b..3c03959d84c1b5cea660e02f004350be42a489c9 100644 (file)
@@ -1,7 +1,7 @@
 - job-template:
-    name: 'opendaylight-{project-name}-{stream}-rebase'
+    name: 'opendaylight-{project-name}-rebase'
 
-    node: infra-build01-ubuntu1804
+    node: infra-ubuntu1804
 
     disabled: false
 
       - logrotate
 
     parameters:
-      - project-parameters:
-          project: '{project}'
-          branch: '{branch}'
       - odl-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/opendaylight/{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:
       - odl-gerrit-trigger-change-merged:
           project: '{project}'
-          branch: '{branch}'
+          branch: '**'
           files: '**'
       - timed: "@midnight"
 
 
     builders:
       - shell:
-          !include-raw-escape: ../global/rebase-jobs.sh
+          !include-raw-escape: ./rebase-jobs.sh
 
     publishers:
       - notify-slack:
           slack-channel: '#infra'
+          notify-start: false
+          notify-success: false
+          notify-failure: true
+          notify-back-to-normal: true