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 2
2
3
3
case " $JDK_VERSION " in
4
4
java8)
5
- BASE_URL=" https://api.adoptopenjdk.net/v2/info/releases/openjdk8 "
5
+ BASE_URL=" https://api.adoptopenjdk.net/v3/assets/feature_releases/8 "
6
6
ISSUE_TITLE=" Upgrade Java 8 version in CI image"
7
7
;;
8
8
java11)
9
- BASE_URL=" https://api.adoptopenjdk.net/v2/info/releases/openjdk11 "
9
+ BASE_URL=" https://api.adoptopenjdk.net/v3/assets/feature_releases/11 "
10
10
ISSUE_TITLE=" Upgrade Java 11 version in CI image"
11
11
;;
12
12
* )
13
13
echo $" Unknown java version"
14
14
exit 1;
15
15
esac
16
16
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" )
19
19
20
20
current=$( git-repo/ci/images/get-jdk-url.sh ${JDK_VERSION} )
21
21
You can’t perform that action at this time.
0 commit comments