Skip to content

Commit 208b2d3

Browse files
committed
Merge branch '2.1.x' into 2.2.x
Closes gh-19175
2 parents d8d7129 + 6255c6b commit 208b2d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/scripts/detect-jdk-updates.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
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
java13)
13-
BASE_URL="https://api.adoptopenjdk.net/v2/info/releases/openjdk13"
13+
BASE_URL="https://api.adoptopenjdk.net/v3/assets/feature_releases/13"
1414
ISSUE_TITLE="Upgrade Java 13 version in CI image"
1515
;;
1616
*)
1717
echo $"Unknown java version"
1818
exit 1;
1919
esac
2020

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

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

0 commit comments

Comments
 (0)