Skip to content

Commit

Permalink
Merge branch '2.6.x' into 2.7.x
Browse files Browse the repository at this point in the history
Closes gh-31147
  • Loading branch information
wilkinsona committed May 23, 2022
2 parents 06679a4 + 6183532 commit 16f4974
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions ci/images/get-jdk-url.sh
Expand Up @@ -3,16 +3,16 @@ set -e

case "$1" in
java8)
echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u332-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u332b09.tar.gz"
echo "https://github.com/bell-sw/Liberica/releases/download/8u332+9/bellsoft-jdk8u332+9-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz"
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15+10/bellsoft-jdk11.0.15+10-linux-amd64.tar.gz"
;;
java17)
echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.3%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.3_7.tar.gz"
echo "https://github.com/bell-sw/Liberica/releases/download/17.0.3+7/bellsoft-jdk17.0.3+7-linux-amd64.tar.gz"
;;
java18)
echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.1%2B10/OpenJDK18U-jdk_x64_linux_hotspot_18.0.1_10.tar.gz"
echo "https://github.com/bell-sw/Liberica/releases/download/18.0.1+12/bellsoft-jdk18.0.1+12-linux-amd64.tar.gz"
;;
*)
echo $"Unknown java version"
Expand Down
12 changes: 6 additions & 6 deletions ci/scripts/detect-jdk-updates.sh
Expand Up @@ -9,28 +9,28 @@ trap 'report_error $? $LINENO' ERR

case "$JDK_VERSION" in
java8)
BASE_URL="https://api.adoptium.net/v3/assets/feature_releases/8/ga"
BASE_URL="https://api.bell-sw.com/v1/liberica/releases?version-feature=8"
ISSUE_TITLE="Upgrade Java 8 version in CI image"
;;
java11)
BASE_URL="https://api.adoptium.net/v3/assets/feature_releases/11/ga"
BASE_URL="https://api.bell-sw.com/v1/liberica/releases?version-feature=11"
ISSUE_TITLE="Upgrade Java 11 version in CI image"
;;
java17)
BASE_URL="https://api.adoptium.net/v3/assets/feature_releases/17/ga"
BASE_URL="https://api.bell-sw.com/v1/liberica/releases?version-feature=17"
ISSUE_TITLE="Upgrade Java 17 version in CI image"
;;
java18)
BASE_URL="https://api.adoptium.net/v3/assets/feature_releases/18/ga"
BASE_URL="https://api.bell-sw.com/v1/liberica/releases?version-feature=18"
ISSUE_TITLE="Upgrade Java 18 version in CI image"
;;
*)
echo $"Unknown java version"
exit 1;
esac

response=$( curl -s ${BASE_URL}\?architecture\=x64\&heap_size\=normal\&image_type\=jdk\&jvm_impl\=hotspot\&os\=linux\&sort_order\=DESC\&vendor\=adoptium )
latest=$( jq -r '.[0].binaries[0].package.link' <<< "$response" )
response=$( curl -s ${BASE_URL}\&arch\=x86\&bitness\=64\&bundle-type\=jdk\&os\=linux\&package-type\=tar.gz\&version-modifier\=latest )
latest=$( jq -r '.[0].downloadUrl' <<< "$response" )
if [[ ${latest} = "null" || ${latest} = "" ]]; then
echo "Could not parse JDK response: $response"
exit 1;
Expand Down

0 comments on commit 16f4974

Please sign in to comment.