Skip to content

Commit

Permalink
Do not download testimage for jdk8 hotspot JDK (#2340)
Browse files Browse the repository at this point in the history
No testimage for jdk8 hotspot is created

Signed-off-by: Sophia Guo <[email protected]>
  • Loading branch information
sophia-guo authored Mar 10, 2021
1 parent 480a80c commit 3585ee8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ getBinaryOpenjdk()
if [ "$SDK_RESOURCE" == "releases" ]; then
release_type="ga"
fi
download_url="https://api.adoptopenjdk.net/v3/binary/latest/${JDK_VERSION}/${release_type}/${os}/${arch}/jdk/${JDK_IMPL}/${heap_size}/adoptopenjdk https://api.adoptopenjdk.net/v3/binary/latest/${JDK_VERSION}/${release_type}/${os}/${arch}/testimage/${JDK_IMPL}/${heap_size}/adoptopenjdk"
download_url="https://api.adoptopenjdk.net/v3/binary/latest/${JDK_VERSION}/${release_type}/${os}/${arch}/jdk/${JDK_IMPL}/${heap_size}/adoptopenjdk"

if [ "$JDK_VERSION" != "8" ] || [ "$JDK_IMPL" != "hotspot" ]; then
download_url+=" https://api.adoptopenjdk.net/v3/binary/latest/${JDK_VERSION}/${release_type}/${os}/${arch}/testimage/${JDK_IMPL}/${heap_size}/adoptopenjdk"
fi
else
download_url=""
echo "--sdkdir is set to $SDK_RESOURCE. Therefore, skip download jdk binary"
Expand Down

0 comments on commit 3585ee8

Please sign in to comment.