From a0fd4fc86b6b8704b9ec79e8d2ab9d528520c0ad Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Fri, 22 Sep 2023 08:53:42 +0200 Subject: [PATCH] Switch Java 21 CI to Bellsoft and enable update detection Closes gh-37369 --- ci/images/get-jdk-url.sh | 2 +- ci/pipeline.yml | 6 ++++++ ci/scripts/detect-jdk-updates.sh | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ci/images/get-jdk-url.sh b/ci/images/get-jdk-url.sh index 39cf051278e..8cdc76229e8 100755 --- a/ci/images/get-jdk-url.sh +++ b/ci/images/get-jdk-url.sh @@ -15,7 +15,7 @@ case "$1" in echo "https://github.com/bell-sw/Liberica/releases/download/20.0.2+10/bellsoft-jdk20.0.2+10-linux-amd64.tar.gz" ;; java21) - echo "https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_linux-x64_bin.tar.gz" + echo "https://github.com/bell-sw/Liberica/releases/download/21+37/bellsoft-jdk21+37-linux-amd64.tar.gz" ;; *) echo $"Unknown java version" diff --git a/ci/pipeline.yml b/ci/pipeline.yml index ea478d89e17..c1d1d7c3df3 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -359,6 +359,12 @@ jobs: params: <<: *github-task-params JDK_VERSION: java20 + - task: detect-jdk21-update + image: ci-image + file: git-repo/ci/tasks/detect-jdk-updates.yml + params: + <<: *github-task-params + JDK_VERSION: java21 - 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 02aaec78c11..6cd4651024b 100755 --- a/ci/scripts/detect-jdk-updates.sh +++ b/ci/scripts/detect-jdk-updates.sh @@ -24,6 +24,10 @@ case "$JDK_VERSION" in BASE_URL="https://api.bell-sw.com/v1/liberica/releases?version-feature=20" ISSUE_TITLE="Upgrade Java 20 version in CI image" ;; + java21) + BASE_URL="https://api.bell-sw.com/v1/liberica/releases?version-feature=21" + ISSUE_TITLE="Upgrade Java 21 version in CI image" + ;; *) echo $"Unknown java version" exit 1;