Merge "Modify airship metal3-io credentials for dev env PR checks"
[infra/cicd.git] / jjb / onap / global-templates-onap-java.yaml
index 5f79175d3d0496016821e5cf78f49755d5502568..39bcac411a835c6f15e6a9773697730409ecdf8d 100644 (file)
@@ -1,8 +1,6 @@
 - job-template:
     name: 'onap-{project-name}-{stream}-verify-java'
 
-    node: onap-ubuntu1604
-
     disabled: false
 
     concurrent: true
     properties:
       - logrotate
 
+    jdk-version: jdk8
+
     parameters:
       - project-parameters:
           project: 'onap/{project}'
           branch: '{branch}'
       - nordix-gerrit-parameters
+      - label:
+          name: SLAVE_LABEL
+          default: 'onap-build-ubuntu1604-{jdk-version}'
+          description: 'Slave label to schedule this job on'
       - string:
           name: JAVA_HOME
-          default: /usr/lib/jvm/java-1.8.0-openjdk-amd64
+          default: /usr/lib/jvm/openjdk-amd64
           description: Java home
       - string:
           name: MVN_VERSION
@@ -37,6 +41,8 @@
           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
           branch: '{branch}'
           refspec: $GERRIT_REFSPEC
+          wipe_workspace: true
+          clean_before: false
 
     triggers:
       - nordix-gerrit-trigger-patchset-created: