diff --git a/ci/images/get-jdk-url.sh b/ci/images/get-jdk-url.sh index f164d80c16d..a10b3063617 100755 --- a/ci/images/get-jdk-url.sh +++ b/ci/images/get-jdk-url.sh @@ -6,7 +6,7 @@ case "$1" in echo "https://github.com/bell-sw/Liberica/releases/download/17.0.6+10/bellsoft-jdk17.0.6+10-linux-amd64.tar.gz" ;; java20) - echo "https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_linux-x64_bin.tar.gz" + echo "https://github.com/bell-sw/Liberica/releases/download/20+37/bellsoft-jdk20+37-linux-amd64.tar.gz" ;; *) echo $"Unknown java version" diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 9c414b9501b..04e36861e9f 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -282,6 +282,12 @@ jobs: params: <<: *github-task-params JDK_VERSION: java17 + - task: detect-jdk20-update + image: ci-image + file: git-repo/ci/tasks/detect-jdk-updates.yml + params: + <<: *github-task-params + JDK_VERSION: java20 - name: detect-ubuntu-image-updates plan: - get: git-repo diff --git a/ci/scripts/detect-jdk-updates.sh b/ci/scripts/detect-jdk-updates.sh index 5b089ab7010..22dc5dcbd96 100755 --- a/ci/scripts/detect-jdk-updates.sh +++ b/ci/scripts/detect-jdk-updates.sh @@ -12,6 +12,10 @@ case "$JDK_VERSION" in BASE_URL="https://api.bell-sw.com/v1/liberica/releases?version-feature=17" ISSUE_TITLE="Upgrade Java 17 version in CI image and .sdkmanrc" ;; + java20) + BASE_URL="https://api.bell-sw.com/v1/liberica/releases?version-feature=20" + ISSUE_TITLE="Upgrade Java 20 version in CI image" + ;; *) echo $"Unknown java version" exit 1;