From f0e57ed688fc52773a523b897d65ead3844f6db9 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Fri, 6 Mar 2020 18:01:35 +0100 Subject: [PATCH 1/2] Add Java 14 CI See gh-20413 --- .../boot/build/ConventionsPlugin.java | 11 ++- ci/images/get-jdk-url.sh | 3 + ci/images/setup.sh | 10 +++ ci/images/spring-boot-ci-image/Dockerfile | 2 +- .../spring-boot-jdk11-ci-image/Dockerfile | 2 +- .../spring-boot-jdk13-ci-image/Dockerfile | 2 +- .../spring-boot-jdk14-ci-image/Dockerfile | 11 +++ ci/pipeline.yml | 69 ++++++++++++++++++- ci/scripts/build-project.sh | 11 ++- ci/scripts/detect-jdk-updates.sh | 6 +- ci/scripts/get-secondary-java-version.sh | 4 ++ 11 files changed, 124 insertions(+), 7 deletions(-) create mode 100644 ci/images/spring-boot-jdk14-ci-image/Dockerfile create mode 100755 ci/scripts/get-secondary-java-version.sh diff --git a/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java b/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java index 1941228ed4..f39690ab7d 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java @@ -141,6 +141,7 @@ public class ConventionsPlugin implements Plugin { }); project.getTasks().withType(Test.class, (test) -> { withOptionalBuildJavaHome(project, (javaHome) -> test.setExecutable(javaHome + "/bin/java")); + withOptionalTestJavaHome(project, (javaHome) -> test.setExecutable(javaHome + "/bin/java")); test.useJUnitPlatform(); test.setMaxHeapSize("1024M"); }); @@ -199,7 +200,15 @@ public class ConventionsPlugin implements Plugin { } private void withOptionalBuildJavaHome(Project project, Consumer consumer) { - String buildJavaHome = (String) project.findProperty("buildJavaHome"); + withOptionalJavaHome(project, consumer, "buildJavaHome"); + } + + private void withOptionalTestJavaHome(Project project, Consumer consumer) { + withOptionalJavaHome(project, consumer, "testJavaHome"); + } + + private void withOptionalJavaHome(Project project, Consumer consumer, String javaHome) { + String buildJavaHome = (String) project.findProperty(javaHome); if (buildJavaHome != null && !buildJavaHome.isEmpty()) { consumer.accept(buildJavaHome); } diff --git a/ci/images/get-jdk-url.sh b/ci/images/get-jdk-url.sh index 2829f493b2..41bec8d0ad 100755 --- a/ci/images/get-jdk-url.sh +++ b/ci/images/get-jdk-url.sh @@ -11,6 +11,9 @@ case "$1" in java13) echo "https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk-13.0.2%2B8/OpenJDK13U-jdk_x64_linux_hotspot_13.0.2_8.tar.gz" ;; + java14) + echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk14-2020-03-05-04-06/OpenJDK14-jdk_x64_linux_hotspot_2020-03-05-04-06.tar.gz" + ;; *) echo $"Unknown java version" exit 1 diff --git a/ci/images/setup.sh b/ci/images/setup.sh index 7bda997923..697c0644ff 100755 --- a/ci/images/setup.sh +++ b/ci/images/setup.sh @@ -23,6 +23,16 @@ curl -L ${JDK_URL} | tar zx --strip-components=1 test -f /opt/openjdk/bin/java test -f /opt/openjdk/bin/javac +if [[ $1 != $2 ]]; then + SECONDARY_JDK_URL=$( ./get-jdk-url.sh $2 ) + + mkdir -p /opt/openjdk-secondary + cd /opt/openjdk-secondary + curl -L ${SECONDARY_JDK_URL} | tar zx --strip-components=1 + test -f /opt/openjdk-secondary/bin/java + test -f /opt/openjdk-secondary/bin/javac +fi + ########################################################### # DOCKER diff --git a/ci/images/spring-boot-ci-image/Dockerfile b/ci/images/spring-boot-ci-image/Dockerfile index 6a5e770069..c0253fade2 100644 --- a/ci/images/spring-boot-ci-image/Dockerfile +++ b/ci/images/spring-boot-ci-image/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:bionic-20200219 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh -RUN ./setup.sh java8 +RUN ./setup.sh java8 java8 ENV JAVA_HOME /opt/openjdk ENV PATH $JAVA_HOME/bin:$PATH diff --git a/ci/images/spring-boot-jdk11-ci-image/Dockerfile b/ci/images/spring-boot-jdk11-ci-image/Dockerfile index 30aaffe873..a4be4bcb93 100644 --- a/ci/images/spring-boot-jdk11-ci-image/Dockerfile +++ b/ci/images/spring-boot-jdk11-ci-image/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:bionic-20200219 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh -RUN ./setup.sh java11 +RUN ./setup.sh java11 java11 ENV JAVA_HOME /opt/openjdk ENV PATH $JAVA_HOME/bin:$PATH diff --git a/ci/images/spring-boot-jdk13-ci-image/Dockerfile b/ci/images/spring-boot-jdk13-ci-image/Dockerfile index b9e18adb08..c08bde6562 100644 --- a/ci/images/spring-boot-jdk13-ci-image/Dockerfile +++ b/ci/images/spring-boot-jdk13-ci-image/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:bionic-20200219 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh -RUN ./setup.sh java13 +RUN ./setup.sh java13 java13 ENV JAVA_HOME /opt/openjdk ENV PATH $JAVA_HOME/bin:$PATH diff --git a/ci/images/spring-boot-jdk14-ci-image/Dockerfile b/ci/images/spring-boot-jdk14-ci-image/Dockerfile new file mode 100644 index 0000000000..45b1e3c75f --- /dev/null +++ b/ci/images/spring-boot-jdk14-ci-image/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:bionic-20200219 + +ADD setup.sh /setup.sh +ADD get-jdk-url.sh /get-jdk-url.sh +RUN ./setup.sh java8 java14 + +ENV JAVA_HOME /opt/openjdk +ENV PATH $JAVA_HOME/bin:$PATH +ADD docker-lib.sh /docker-lib.sh + +ENTRYPOINT [ "switch", "shell=/bin/bash", "--", "codep", "/bin/docker daemon" ] diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 46f2ae26dc..f410f893a1 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -94,6 +94,14 @@ resources: username: ((docker-hub-username)) password: ((docker-hub-password)) tag: 2.3.x +- name: spring-boot-jdk14-ci-image + type: docker-image + icon: docker + source: + repository: ((docker-hub-organization))/spring-boot-jdk14-ci-image + username: ((docker-hub-username)) + password: ((docker-hub-password)) + tag: 2.3.x - name: artifactory-repo type: artifactory-resource icon: package-variant @@ -126,6 +134,14 @@ resources: access_token: ((github-ci-status-token)) branch: ((branch)) context: jdk13-build +- name: repo-status-jdk14-build + type: github-status-resource + icon: eye-check-outline + source: + repository: ((github-repo-name)) + access_token: ((github-ci-status-token)) + branch: ((branch)) + context: jdk14-build - name: slack-alert type: slack-notification icon: slack @@ -160,6 +176,10 @@ jobs: params: build: ci-images-git-repo/ci/images dockerfile: ci-images-git-repo/ci/images/spring-boot-jdk13-ci-image/Dockerfile + - put: spring-boot-jdk14-ci-image + params: + build: ci-images-git-repo/ci/images + dockerfile: ci-images-git-repo/ci/images/spring-boot-jdk14-ci-image/Dockerfile - name: detect-jdk-updates plan: - get: git-repo @@ -194,6 +214,15 @@ jobs: GITHUB_USERNAME: ((github-username)) JDK_VERSION: java13 image: spring-boot-ci-image + - task: detect-jdk14-update + file: git-repo/ci/tasks/detect-jdk-updates.yml + params: + GITHUB_REPO: spring-boot + GITHUB_ORGANIZATION: spring-projects + GITHUB_PASSWORD: ((github-password)) + GITHUB_USERNAME: ((github-username)) + JDK_VERSION: java14 + image: spring-boot-ci-image - name: detect-ubuntu-image-updates plan: - get: git-repo @@ -375,6 +404,44 @@ jobs: silent: true icon_emoji: ":concourse:" username: concourse-ci +- name: jdk14-build + serial: true + public: true + plan: + - get: spring-boot-jdk14-ci-image + - get: git-repo + trigger: false + - put: repo-status-jdk14-build + params: { state: "pending", commit: "git-repo" } + - do: + - task: build-project + privileged: true + timeout: ((task-timeout)) + image: spring-boot-jdk14-ci-image + file: git-repo/ci/tasks/build-project.yml + params: + BRANCH: ((branch)) + GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key)) + GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username)) + GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password)) + on_failure: + do: + - put: repo-status-jdk14-build + params: { state: "failure", commit: "git-repo" } + - put: slack-alert + params: + text: ":concourse-failed: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci + - put: repo-status-jdk14-build + params: { state: "success", commit: "git-repo" } + - put: slack-alert + params: + text: ":concourse-succeeded: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci - name: windows-build serial: true plan: @@ -591,7 +658,7 @@ jobs: body: generated-release-notes/release-notes.md groups: - name: "Build" - jobs: ["build", "jdk11-build", "jdk13-build", "windows-build"] + jobs: ["build", "jdk11-build", "jdk13-build", "jdk14-build", "windows-build"] - name: "Release" jobs: ["stage-milestone", "stage-rc", "stage-release", "promote-milestone", "promote-rc", "promote-release", "sync-to-maven-central"] - name: "CI Images" diff --git a/ci/scripts/build-project.sh b/ci/scripts/build-project.sh index 3844d1a3dd..d2823da325 100755 --- a/ci/scripts/build-project.sh +++ b/ci/scripts/build-project.sh @@ -5,5 +5,14 @@ source $(dirname $0)/common.sh repository=$(pwd)/distribution-repository pushd git-repo > /dev/null -./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository +if [[ -d /opt/openjdk-secondary ]]; then + java_version=$( ./$(dirname $0)/get-secondary-java-version.sh ) + if [[ ${java_version} = "14" ]]; then + ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PtestJavaHome=/opt/openjdk-secondary -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository -x :spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin:test + else + ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PtestJavaHome=/opt/openjdk-secondary -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository + fi +else + ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository +fi popd > /dev/null diff --git a/ci/scripts/detect-jdk-updates.sh b/ci/scripts/detect-jdk-updates.sh index 706d063b82..0124ac5865 100755 --- a/ci/scripts/detect-jdk-updates.sh +++ b/ci/scripts/detect-jdk-updates.sh @@ -13,12 +13,16 @@ case "$JDK_VERSION" in BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/13" ISSUE_TITLE="Upgrade Java 13 version in CI image" ;; + java14) + BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/14/ea" + ISSUE_TITLE="Upgrade Java 14 version in CI image" + ;; *) echo $"Unknown java version" exit 1; esac -response=$( curl -s ${BASE_URL}\/ga\?architecture\=x64\&heap_size\=normal\&image_type\=jdk\&jvm_impl\=hotspot\&os\=linux\&sort_order\=DESC\&vendor\=adoptopenjdk ) +response=$( curl -s ${BASE_URL}\?architecture\=x64\&heap_size\=normal\&image_type\=jdk\&jvm_impl\=hotspot\&os\=linux\&sort_order\=DESC\&vendor\=adoptopenjdk ) latest=$( jq -r '.[0].binaries[0].package.link' <<< "$response" ) current=$( git-repo/ci/images/get-jdk-url.sh ${JDK_VERSION} ) diff --git a/ci/scripts/get-secondary-java-version.sh b/ci/scripts/get-secondary-java-version.sh new file mode 100755 index 0000000000..ae15a573e8 --- /dev/null +++ b/ci/scripts/get-secondary-java-version.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -e + +/opt/openjdk-secondary/bin/java -XshowSettings:properties -version 2>&1 | grep "java.specification.version" | awk '{split($0,parts,"="); print parts[2]}' | awk '{$1=$1;print}' \ No newline at end of file From 8d3ab1cc7d55d9e819975b3aa2d742bba8ddefdb Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 18 Mar 2020 14:26:04 +0100 Subject: [PATCH 2/2] Polish "Add Java 14 CI" See gh-20413 --- .../springframework/boot/build/ConventionsPlugin.java | 11 +---------- ci/images/get-jdk-url.sh | 2 +- ci/images/setup.sh | 10 ---------- ci/images/spring-boot-ci-image/Dockerfile | 2 +- ci/images/spring-boot-jdk11-ci-image/Dockerfile | 2 +- ci/images/spring-boot-jdk13-ci-image/Dockerfile | 2 +- ci/images/spring-boot-jdk14-ci-image/Dockerfile | 2 +- ci/pipeline.yml | 2 +- ci/scripts/build-project.sh | 11 +---------- ci/scripts/detect-jdk-updates.sh | 4 ++-- ci/scripts/get-secondary-java-version.sh | 4 ---- 11 files changed, 10 insertions(+), 42 deletions(-) delete mode 100755 ci/scripts/get-secondary-java-version.sh diff --git a/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java b/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java index f39690ab7d..1941228ed4 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java @@ -141,7 +141,6 @@ public class ConventionsPlugin implements Plugin { }); project.getTasks().withType(Test.class, (test) -> { withOptionalBuildJavaHome(project, (javaHome) -> test.setExecutable(javaHome + "/bin/java")); - withOptionalTestJavaHome(project, (javaHome) -> test.setExecutable(javaHome + "/bin/java")); test.useJUnitPlatform(); test.setMaxHeapSize("1024M"); }); @@ -200,15 +199,7 @@ public class ConventionsPlugin implements Plugin { } private void withOptionalBuildJavaHome(Project project, Consumer consumer) { - withOptionalJavaHome(project, consumer, "buildJavaHome"); - } - - private void withOptionalTestJavaHome(Project project, Consumer consumer) { - withOptionalJavaHome(project, consumer, "testJavaHome"); - } - - private void withOptionalJavaHome(Project project, Consumer consumer, String javaHome) { - String buildJavaHome = (String) project.findProperty(javaHome); + String buildJavaHome = (String) project.findProperty("buildJavaHome"); if (buildJavaHome != null && !buildJavaHome.isEmpty()) { consumer.accept(buildJavaHome); } diff --git a/ci/images/get-jdk-url.sh b/ci/images/get-jdk-url.sh index 41bec8d0ad..5fa09c71e0 100755 --- a/ci/images/get-jdk-url.sh +++ b/ci/images/get-jdk-url.sh @@ -12,7 +12,7 @@ case "$1" in echo "https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk-13.0.2%2B8/OpenJDK13U-jdk_x64_linux_hotspot_13.0.2_8.tar.gz" ;; java14) - echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk14-2020-03-05-04-06/OpenJDK14-jdk_x64_linux_hotspot_2020-03-05-04-06.tar.gz" + echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14%2B36/OpenJDK14U-jdk_x64_linux_hotspot_14_36.tar.gz" ;; *) echo $"Unknown java version" diff --git a/ci/images/setup.sh b/ci/images/setup.sh index 697c0644ff..7bda997923 100755 --- a/ci/images/setup.sh +++ b/ci/images/setup.sh @@ -23,16 +23,6 @@ curl -L ${JDK_URL} | tar zx --strip-components=1 test -f /opt/openjdk/bin/java test -f /opt/openjdk/bin/javac -if [[ $1 != $2 ]]; then - SECONDARY_JDK_URL=$( ./get-jdk-url.sh $2 ) - - mkdir -p /opt/openjdk-secondary - cd /opt/openjdk-secondary - curl -L ${SECONDARY_JDK_URL} | tar zx --strip-components=1 - test -f /opt/openjdk-secondary/bin/java - test -f /opt/openjdk-secondary/bin/javac -fi - ########################################################### # DOCKER diff --git a/ci/images/spring-boot-ci-image/Dockerfile b/ci/images/spring-boot-ci-image/Dockerfile index c0253fade2..6a5e770069 100644 --- a/ci/images/spring-boot-ci-image/Dockerfile +++ b/ci/images/spring-boot-ci-image/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:bionic-20200219 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh -RUN ./setup.sh java8 java8 +RUN ./setup.sh java8 ENV JAVA_HOME /opt/openjdk ENV PATH $JAVA_HOME/bin:$PATH diff --git a/ci/images/spring-boot-jdk11-ci-image/Dockerfile b/ci/images/spring-boot-jdk11-ci-image/Dockerfile index a4be4bcb93..30aaffe873 100644 --- a/ci/images/spring-boot-jdk11-ci-image/Dockerfile +++ b/ci/images/spring-boot-jdk11-ci-image/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:bionic-20200219 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh -RUN ./setup.sh java11 java11 +RUN ./setup.sh java11 ENV JAVA_HOME /opt/openjdk ENV PATH $JAVA_HOME/bin:$PATH diff --git a/ci/images/spring-boot-jdk13-ci-image/Dockerfile b/ci/images/spring-boot-jdk13-ci-image/Dockerfile index c08bde6562..b9e18adb08 100644 --- a/ci/images/spring-boot-jdk13-ci-image/Dockerfile +++ b/ci/images/spring-boot-jdk13-ci-image/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:bionic-20200219 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh -RUN ./setup.sh java13 java13 +RUN ./setup.sh java13 ENV JAVA_HOME /opt/openjdk ENV PATH $JAVA_HOME/bin:$PATH diff --git a/ci/images/spring-boot-jdk14-ci-image/Dockerfile b/ci/images/spring-boot-jdk14-ci-image/Dockerfile index 45b1e3c75f..91c8a67533 100644 --- a/ci/images/spring-boot-jdk14-ci-image/Dockerfile +++ b/ci/images/spring-boot-jdk14-ci-image/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:bionic-20200219 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh -RUN ./setup.sh java8 java14 +RUN ./setup.sh java14 ENV JAVA_HOME /opt/openjdk ENV PATH $JAVA_HOME/bin:$PATH diff --git a/ci/pipeline.yml b/ci/pipeline.yml index f410f893a1..73273b1bed 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -410,7 +410,7 @@ jobs: plan: - get: spring-boot-jdk14-ci-image - get: git-repo - trigger: false + trigger: true - put: repo-status-jdk14-build params: { state: "pending", commit: "git-repo" } - do: diff --git a/ci/scripts/build-project.sh b/ci/scripts/build-project.sh index d2823da325..3844d1a3dd 100755 --- a/ci/scripts/build-project.sh +++ b/ci/scripts/build-project.sh @@ -5,14 +5,5 @@ source $(dirname $0)/common.sh repository=$(pwd)/distribution-repository pushd git-repo > /dev/null -if [[ -d /opt/openjdk-secondary ]]; then - java_version=$( ./$(dirname $0)/get-secondary-java-version.sh ) - if [[ ${java_version} = "14" ]]; then - ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PtestJavaHome=/opt/openjdk-secondary -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository -x :spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin:test - else - ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PtestJavaHome=/opt/openjdk-secondary -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository - fi -else - ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository -fi +./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository popd > /dev/null diff --git a/ci/scripts/detect-jdk-updates.sh b/ci/scripts/detect-jdk-updates.sh index 0124ac5865..42503f9791 100755 --- a/ci/scripts/detect-jdk-updates.sh +++ b/ci/scripts/detect-jdk-updates.sh @@ -14,7 +14,7 @@ case "$JDK_VERSION" in ISSUE_TITLE="Upgrade Java 13 version in CI image" ;; java14) - BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/14/ea" + BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/14" ISSUE_TITLE="Upgrade Java 14 version in CI image" ;; *) @@ -22,7 +22,7 @@ case "$JDK_VERSION" in exit 1; esac -response=$( curl -s ${BASE_URL}\?architecture\=x64\&heap_size\=normal\&image_type\=jdk\&jvm_impl\=hotspot\&os\=linux\&sort_order\=DESC\&vendor\=adoptopenjdk ) +response=$( curl -s ${BASE_URL}\/ga\?architecture\=x64\&heap_size\=normal\&image_type\=jdk\&jvm_impl\=hotspot\&os\=linux\&sort_order\=DESC\&vendor\=adoptopenjdk ) latest=$( jq -r '.[0].binaries[0].package.link' <<< "$response" ) current=$( git-repo/ci/images/get-jdk-url.sh ${JDK_VERSION} ) diff --git a/ci/scripts/get-secondary-java-version.sh b/ci/scripts/get-secondary-java-version.sh deleted file mode 100755 index ae15a573e8..0000000000 --- a/ci/scripts/get-secondary-java-version.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e - -/opt/openjdk-secondary/bin/java -XshowSettings:properties -version 2>&1 | grep "java.specification.version" | awk '{split($0,parts,"="); print parts[2]}' | awk '{$1=$1;print}' \ No newline at end of file