Add push-upstream job
[infra/cicd.git] / jjb / global / global-templates-push-upstream.yaml
diff --git a/jjb/global/global-templates-push-upstream.yaml b/jjb/global/global-templates-push-upstream.yaml
new file mode 100644 (file)
index 0000000..06528c8
--- /dev/null
@@ -0,0 +1,30 @@
+- job-template:
+    name: '{project-name}-push-upstream'
+
+    node: onap-ubuntu1604
+
+    disabled: false
+
+    concurrent: true
+
+    parameters:
+      - project-parameters:
+          project: '{project}'
+          branch: '{branch}'
+      - nordix-gerrit-parameters
+
+    scm:
+      - git-scm-gerrit:
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+          branch: '{branch}'
+          refspec: $GERRIT_REFSPEC
+
+    triggers:
+      - nordix-gerrit-push-upstream:
+          project: '{project}'
+          branch: '{branch}'
+          files: '**'
+
+    builders:
+      - shell:
+          !include-raw-escape: ./push-upstream-jobs.sh