Add Acumos Gerrit configuration and rebase jobs
[infra/cicd.git] / jjb / acumos / global-templates-acumos-rebase.yaml
diff --git a/jjb/acumos/global-templates-acumos-rebase.yaml b/jjb/acumos/global-templates-acumos-rebase.yaml
new file mode 100644 (file)
index 0000000..e26e872
--- /dev/null
@@ -0,0 +1,46 @@
+- job-template:
+    name: 'acumos-{project-name}-{stream}-rebase'
+
+    node: infra-build01-ubuntu1804
+
+    disabled: false
+
+    concurrent: false
+
+    properties:
+      - logrotate
+
+    parameters:
+      - project-parameters:
+          project: '{project}'
+          branch: '{branch}'
+      - acumos-gerrit-parameters
+      - string:
+          name: NORDIX_REMOTE
+          default: 'ssh://infra@gerrit.nordix.org:29418/acumos/{project}.git'
+          description: The remote to add for Nordix.
+
+    scm:
+      - git-scm:
+          ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
+          branch: '{branch}'
+          refspec: ''
+
+    triggers:
+      - acumos-gerrit-trigger-change-merged:
+          project: '{project}'
+          branch: '{branch}'
+          files: '**'
+      - timed: "@midnight"
+
+    wrappers:
+      - build-timeout:
+          timeout: 10
+
+    builders:
+      - shell:
+          !include-raw-escape: ../global/rebase-jobs.sh
+
+    publishers:
+      - notify-slack:
+          slack-channel: '#acumos'