Add it/test
[infra/cicd.git] / jjb / acumos / global-templates-acumos-rebase.yaml
index e26e872eacb2d6598305a673335532be6b1210e1..f18732c3f98279fdc008b8cf2c1866cea3734d60 100644 (file)
@@ -1,7 +1,7 @@
 - job-template:
-    name: 'acumos-{project-name}-{stream}-rebase'
+    name: 'acumos-{project-name}-rebase'
 
-    node: infra-build01-ubuntu1804
+    node: infra-ubuntu2004
 
     disabled: false
 
       - logrotate
 
     parameters:
-      - project-parameters:
-          project: '{project}'
-          branch: '{branch}'
       - acumos-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/acumos/{project}.git'
     scm:
       - git-scm:
           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
-          branch: '{branch}'
+          branch: 'master'
           refspec: ''
+          wipe_workspace: false
+          clean_before: true
 
     triggers:
       - acumos-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:
@@ -43,4 +49,8 @@
 
     publishers:
       - notify-slack:
-          slack-channel: '#acumos'
+          slack-channel: '#infra'
+          notify-start: false
+          notify-success: false
+          notify-failure: true
+          notify-back-to-normal: true