Commit 6255c6b5 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #19168 from dreis2211

* pr/19168:
  Use AdoptOpenJDK API V3 when detecting JDK updates

Closes gh-19168
parents e3947728 9a59d5f9
......@@ -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} )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment