FDIO: Fast Data Project introduction to Nordix
[infra/cicd.git] / jjb / global / global-templates-rebase.yaml
index 38712ae2a87e9a85d4ebb5b0d5b7539c413983ee..7ae7d228d392a2d3612e7f23b8cf41914255b293 100644 (file)
@@ -1,12 +1,15 @@
 - job-template:
     name: '{project-name}-{stream}-rebase'
 
-    node: infra-build01-ubuntu1804
+    node: infra-ubuntu1804
 
     disabled: false
 
     concurrent: false
 
+    properties:
+      - logrotate
+
     parameters:
       - project-parameters:
           project: '{project}'
           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
           branch: '{branch}'
           refspec: ''
+          wipe_workspace: true
+          clean_before: false
 
     triggers:
       - onap-gerrit-trigger-change-merged:
           project: '{project}'
           branch: '{branch}'
           files: '**'
+      - timed: "@midnight"
 
     wrappers:
       - build-timeout:
     builders:
       - shell:
           !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