ONAP: Define Java version as part of the project verify job
This change introduce one ONAP Java build server.
On that ONAP build server multiple Java versions will be installed:
- JDK8
- JDK11
- JDK12
The correct Java version required for the job will be defined using
JAVA_HOME
Change-Id: I9ec54c3509b13bcea760c2a888a33beb7be9e90f
diff --git a/jjb/onap/global-templates-onap-java.yaml b/jjb/onap/global-templates-onap-java.yaml
index d9143a7..7a3f2ce 100644
--- a/jjb/onap/global-templates-onap-java.yaml
+++ b/jjb/onap/global-templates-onap-java.yaml
@@ -1,7 +1,7 @@
- job-template:
name: 'onap-{project-name}-{stream}-verify-java'
disabled_job_var: false
- jdk-version: jdk8
+ node: onap-ubuntu1804
disabled: '{obj:disabled_job_var}'
concurrent: true
@@ -13,13 +13,9 @@
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/openjdk-amd64
+ default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
description: Java home
- string:
name: MVN_VERSION
@@ -54,4 +50,4 @@
builders:
- shell:
- !include-raw-escape: ../global/verify-jobs.sh
+ !include-raw-escape: ./verify-jobs.sh