Update Jenkins Job Builder to version 2.9.1
[infra/cicd.git] / jjb / global / global-templates-rebase.yaml
index 19c3af7102e51744aa03727528f97d8828bb850b..6ac53a954ff119067ad44387793325775b1a426d 100644 (file)
@@ -1,12 +1,15 @@
 - job-template:
     name: '{project-name}-{stream}-rebase'
 
-    node: ubuntu1804
+    node: infra-build01-ubuntu1804
 
     disabled: false
 
     concurrent: false
 
+    properties:
+      - logrotate
+
     parameters:
       - project-parameters:
           project: '{project}'
           name: NORDIX_REMOTE
           default: 'ssh://infra@gerrit.nordix.org:29418/{project}.git'
           description: The remote to add for Nordix.
-      - string:
-          name: UPSTREAM_BRANCH
-          default: '{upstream-branch}'
-          description: The upstream branch to rebase against.
 
     scm:
       - git-scm:
           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
-          branch: "$UPSTREAM_BRANCH"
+          branch: '{branch}'
           refspec: ''
 
     triggers:
       - onap-gerrit-trigger-change-merged:
           project: '{project}'
-          branch: "$UPSTREAM_BRANCH"
+          branch: '{branch}'
           files: '**'
+      - timed: "@midnight"
+
+    wrappers:
+      - build-timeout:
+          timeout: 10
 
     builders:
       - shell:
           !include-raw-escape: ./rebase-jobs.sh
+
+    publishers:
+      - notify-slack:
+          slack-channel: '#infra'