ACUMOS: Improve jenkins jobs for Acumos projects
[infra/cicd.git] / jjb / acumos / global-templates-acumos-push-upstream.yaml
index 2a31aafda168cee2f235197924ac76f503ca2a59..a0cf5b120c7c6fe52b698ccb7ca5fc0d5664f70a 100644 (file)
@@ -1,7 +1,7 @@
 - job-template:
-    name: 'acumos-{project-name}-{stream}-push-upstream'
+    name: 'acumos-{project-name}-push-upstream'
 
-    node: onap-ubuntu1604
+    node: infra-build01-ubuntu1804
 
     disabled: false
 
       - logrotate
 
     parameters:
-      - project-parameters:
-          project: 'acumos/{project}'
-          branch: '{branch}'
+      - string:
+          name: PROJECT
+          default: 'acumos/{project}'
+          description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
       - nordix-gerrit-parameters
 
     scm:
       - git-scm-gerrit:
           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
-          branch: '{branch}'
+          branch: $GERRIT_BRANCH
           refspec: $GERRIT_REFSPEC
           wipe_workspace: true
           clean_before: false
@@ -27,7 +28,7 @@
     triggers:
       - nordix-gerrit-push-upstream:
           project: 'acumos/{project}'
-          branch: '{branch}'
+          branch: '**'
           files: '**'
 
     wrappers: