Skip to content

Commit 6255c6b

Browse files
committed
Merge pull request #19168 from dreis2211
* pr/19168: Use AdoptOpenJDK API V3 when detecting JDK updates Closes gh-19168
2 parents e394772 + 9a59d5f commit 6255c6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci/scripts/detect-jdk-updates.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
case "$JDK_VERSION" in
44
java8)
5-
BASE_URL="https://api.adoptopenjdk.net/v2/info/releases/openjdk8"
5+
BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/8"
66
ISSUE_TITLE="Upgrade Java 8 version in CI image"
77
;;
88
java11)
9-
BASE_URL="https://api.adoptopenjdk.net/v2/info/releases/openjdk11"
9+
BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/11"
1010
ISSUE_TITLE="Upgrade Java 11 version in CI image"
1111
;;
1212
*)
1313
echo $"Unknown java version"
1414
exit 1;
1515
esac
1616

17-
response=$( curl -s ${BASE_URL}\?openjdk_impl\=hotspot\&os\=linux\&arch\=x64\&release\=latest\&type\=jdk )
18-
latest=$( jq -r '.binaries[0].binary_link' <<< "$response" )
17+
response=$( curl -s ${BASE_URL}\/ga\?architecture\=x64\&heap_size\=normal\&image_type\=jdk\&jvm_impl\=hotspot\&os\=linux\&sort_order\=DESC\&vendor\=adoptopenjdk )
18+
latest=$( jq -r '.[0].binaries[0].package.link' <<< "$response" )
1919

2020
current=$( git-repo/ci/images/get-jdk-url.sh ${JDK_VERSION} )
2121

0 commit comments

Comments
 (0)