From 882e7bac86e179f180d7fadd2227eb94433ae749 Mon Sep 17 00:00:00 2001 From: Justin Early Date: Tue, 3 Sep 2019 13:27:16 -0700 Subject: [PATCH] ACUMOS: Java 11 introduction Introduction of Java 11 to projects: - license-manager - license-usage-manager - portal-marketplace The java version is defined per project but this can be extended per branch if needed later on. Acumos slave server was updated to include the JDK 11 and the version of Java is controled using JAVA_HOME per Acumos Jenkins Job Change-Id: I2f3ad8ec3e1c0a97eac2804b231cd7943caaf713 Signed-off-by: Justin Early --- .../acumos-java-client-verify-jobs.yaml | 1 + .../acumos-python-client-verify-jobs.yaml | 1 + .../documenation-verify-jobs.yaml | 1 + .../federation/federation-verify-jobs.yml | 1 + jjb/acumos/global-templates-acumos-java.yaml | 7 ++--- .../kubernetes-client-verify-jobs.yaml | 1 + .../license-manager-verify-jobs.yaml | 2 +- .../license-usage-manager-verify-jobs.yaml | 26 +++++++++++++++++++ .../microservice-generation-verify-jobs.yaml | 1 + .../portal-marketplace-verify-jobs.yaml | 3 ++- .../runtime-orchestrator-verify-jobs.yaml | 1 + .../security-verification-verify-jobs.yaml | 1 + jjb/acumos/verify-jobs.sh | 2 +- .../workbench/workbench-verify-jobs.yaml | 1 + 14 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 jjb/acumos/license-usage-manager/license-usage-manager-verify-jobs.yaml diff --git a/jjb/acumos/acumos-java-client/acumos-java-client-verify-jobs.yaml b/jjb/acumos/acumos-java-client/acumos-java-client-verify-jobs.yaml index 1cd317df..fd62d567 100644 --- a/jjb/acumos/acumos-java-client/acumos-java-client-verify-jobs.yaml +++ b/jjb/acumos/acumos-java-client/acumos-java-client-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-java-client-verify project: acumos-java-client project-name: acumos-java-client + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/acumos-python-client/acumos-python-client-verify-jobs.yaml b/jjb/acumos/acumos-python-client/acumos-python-client-verify-jobs.yaml index da80d97c..19b3acb3 100644 --- a/jjb/acumos/acumos-python-client/acumos-python-client-verify-jobs.yaml +++ b/jjb/acumos/acumos-python-client/acumos-python-client-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-python-client-verify project: acumos-python-client project-name: acumos-python-client + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/documenation/documenation-verify-jobs.yaml b/jjb/acumos/documenation/documenation-verify-jobs.yaml index ad548c7c..be669443 100644 --- a/jjb/acumos/documenation/documenation-verify-jobs.yaml +++ b/jjb/acumos/documenation/documenation-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-documentation-verify project: documentation project-name: documentation + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/federation/federation-verify-jobs.yml b/jjb/acumos/federation/federation-verify-jobs.yml index dc5aa584..a146c783 100644 --- a/jjb/acumos/federation/federation-verify-jobs.yml +++ b/jjb/acumos/federation/federation-verify-jobs.yml @@ -21,6 +21,7 @@ name: acumos-federation-verify project: federation project-name: federation + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/global-templates-acumos-java.yaml b/jjb/acumos/global-templates-acumos-java.yaml index 2ea9d53c..0ea0ee6c 100644 --- a/jjb/acumos/global-templates-acumos-java.yaml +++ b/jjb/acumos/global-templates-acumos-java.yaml @@ -1,10 +1,7 @@ - job-template: name: 'acumos-{project-name}-verify-java' - - node: acumos-ubuntu1604 - + node: acumos-ubuntu1804 disabled: false - concurrent: true properties: @@ -18,7 +15,7 @@ description: JJB configured PROJECT parameter to identify a Nordix Gerrit project - string: name: JAVA_HOME - default: /usr/lib/jvm/java-1.8.0-openjdk-amd64 + default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64' description: Java home - string: name: MVN_VERSION diff --git a/jjb/acumos/kubernetes-client/kubernetes-client-verify-jobs.yaml b/jjb/acumos/kubernetes-client/kubernetes-client-verify-jobs.yaml index 964ba90c..af7ef162 100644 --- a/jjb/acumos/kubernetes-client/kubernetes-client-verify-jobs.yaml +++ b/jjb/acumos/kubernetes-client/kubernetes-client-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-kubernetes-client-verify project: kubernetes-client project-name: kubernetes-client + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/license-manager/license-manager-verify-jobs.yaml b/jjb/acumos/license-manager/license-manager-verify-jobs.yaml index 948f0bf5..6817cdc3 100644 --- a/jjb/acumos/license-manager/license-manager-verify-jobs.yaml +++ b/jjb/acumos/license-manager/license-manager-verify-jobs.yaml @@ -21,6 +21,6 @@ name: acumos-license-manager-verify project: license-manager project-name: license-manager - + jdk-version: java-11 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/license-usage-manager/license-usage-manager-verify-jobs.yaml b/jjb/acumos/license-usage-manager/license-usage-manager-verify-jobs.yaml new file mode 100644 index 00000000..12ed8e72 --- /dev/null +++ b/jjb/acumos/license-usage-manager/license-usage-manager-verify-jobs.yaml @@ -0,0 +1,26 @@ +--- +# ============LICENSE_START======================================================= +# Copyright (C) 2019 Nordix Foundation. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= + +- project: + name: license-usage-manager-verify + project: license-usage-manager + project-name: license-usage-manager + jdk-version: java-11 + jobs: + - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/microservice-generation/microservice-generation-verify-jobs.yaml b/jjb/acumos/microservice-generation/microservice-generation-verify-jobs.yaml index 0c3cad0a..b78132ce 100644 --- a/jjb/acumos/microservice-generation/microservice-generation-verify-jobs.yaml +++ b/jjb/acumos/microservice-generation/microservice-generation-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-microservice-generation-verify project: microservice-generation project-name: microservice-generation + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/portal-marketplace/portal-marketplace-verify-jobs.yaml b/jjb/acumos/portal-marketplace/portal-marketplace-verify-jobs.yaml index fd50f8b5..2f428b78 100644 --- a/jjb/acumos/portal-marketplace/portal-marketplace-verify-jobs.yaml +++ b/jjb/acumos/portal-marketplace/portal-marketplace-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-portal-marketplace-verify project: portal-marketplace project-name: portal-marketplace + jdk-version: java-11 jobs: - - 'acumos-{project-name}-verify-java' + - 'acumos-{project-name}-verify-java' \ No newline at end of file diff --git a/jjb/acumos/runtime-orchestrator/runtime-orchestrator-verify-jobs.yaml b/jjb/acumos/runtime-orchestrator/runtime-orchestrator-verify-jobs.yaml index aea3b2f5..fcbadc0e 100644 --- a/jjb/acumos/runtime-orchestrator/runtime-orchestrator-verify-jobs.yaml +++ b/jjb/acumos/runtime-orchestrator/runtime-orchestrator-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-runtime-orchestrator-verify project: runtime-orchestrator project-name: runtime-orchestrator + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/security-verification/security-verification-verify-jobs.yaml b/jjb/acumos/security-verification/security-verification-verify-jobs.yaml index b08f775f..a7ab0bd8 100644 --- a/jjb/acumos/security-verification/security-verification-verify-jobs.yaml +++ b/jjb/acumos/security-verification/security-verification-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-security-verification-verify project: security-verification project-name: security-verification + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' diff --git a/jjb/acumos/verify-jobs.sh b/jjb/acumos/verify-jobs.sh index 2ffc1d2b..fe437ef7 100755 --- a/jjb/acumos/verify-jobs.sh +++ b/jjb/acumos/verify-jobs.sh @@ -6,7 +6,7 @@ set -o pipefail cd $WORKSPACE echo "Info: Java version" echo "----------------------------------------------------" -java -version +$JAVA_HOME/bin/java -version echo "----------------------------------------------------" echo "Downloading Maven $MVN_VERSION from $MVN_URL" wget -q $MVN_URL && unzip -qq apache-maven-${MVN_VERSION}-bin.zip diff --git a/jjb/acumos/workbench/workbench-verify-jobs.yaml b/jjb/acumos/workbench/workbench-verify-jobs.yaml index 86d355fc..55ee9391 100644 --- a/jjb/acumos/workbench/workbench-verify-jobs.yaml +++ b/jjb/acumos/workbench/workbench-verify-jobs.yaml @@ -21,6 +21,7 @@ name: acumos-workbench-verify project: workbench project-name: workbench + jdk-version: java-8 jobs: - 'acumos-{project-name}-verify-java' -- 2.25.1