File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33case " $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;
1515esac
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
2020current=$( git-repo/ci/images/get-jdk-url.sh ${JDK_VERSION} )
2121
You can’t perform that action at this time.
0 commit comments