From 9a59d5f9fcefa0cd214755b56cea734c2ca1479f Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Wed, 27 Nov 2019 22:40:12 +0100 Subject: [PATCH] Use AdoptOpenJDK API V3 when detecting JDK updates See gh-19168 --- ci/scripts/detect-jdk-updates.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/scripts/detect-jdk-updates.sh b/ci/scripts/detect-jdk-updates.sh index dd08b449c6..bace1535fe 100755 --- a/ci/scripts/detect-jdk-updates.sh +++ b/ci/scripts/detect-jdk-updates.sh @@ -2,11 +2,11 @@ case "$JDK_VERSION" in java8) - BASE_URL="https://api.adoptopenjdk.net/v2/info/releases/openjdk8" + BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/8" ISSUE_TITLE="Upgrade Java 8 version in CI image" ;; java11) - BASE_URL="https://api.adoptopenjdk.net/v2/info/releases/openjdk11" + BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/11" ISSUE_TITLE="Upgrade Java 11 version in CI image" ;; *) @@ -14,8 +14,8 @@ case "$JDK_VERSION" in exit 1; esac -response=$( curl -s ${BASE_URL}\?openjdk_impl\=hotspot\&os\=linux\&arch\=x64\&release\=latest\&type\=jdk ) -latest=$( jq -r '.binaries[0].binary_link' <<< "$response" ) +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} )