Create jjb for datafile rebase jobs
[infra/cicd.git] / jjb / global / global-templates-rebase.yaml
diff --git a/jjb/global/global-templates-rebase.yaml b/jjb/global/global-templates-rebase.yaml
new file mode 100644 (file)
index 0000000..19c3af7
--- /dev/null
@@ -0,0 +1,38 @@
+- job-template:
+    name: '{project-name}-{stream}-rebase'
+
+    node: ubuntu1804
+
+    disabled: false
+
+    concurrent: false
+
+    parameters:
+      - project-parameters:
+          project: '{project}'
+          branch: '{branch}'
+      - onap-gerrit-parameters
+      - string:
+          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"
+          refspec: ''
+
+    triggers:
+      - onap-gerrit-trigger-change-merged:
+          project: '{project}'
+          branch: "$UPSTREAM_BRANCH"
+          files: '**'
+
+    builders:
+      - shell:
+          !include-raw-escape: ./rebase-jobs.sh