Skip to content

Commit ace49aa

Browse files
authored
Merge branch 'master' into s390x-jdk21
2 parents 7becf2f + 518f9fe commit ace49aa

File tree

12 files changed

+72
-53
lines changed

12 files changed

+72
-53
lines changed

.github/workflows/updatecli.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
uses: updatecli/[email protected]
1919

2020
- name: Run Updatecli in Dry Run mode
21-
run: updatecli diff --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml
21+
run: updatecli diff --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml --values ./updatecli/values.temurin.yaml
2222
env:
2323
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424

2525
- name: Run Updatecli in Apply mode
2626
if: github.ref == 'refs/heads/master'
27-
run: updatecli apply --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml
27+
run: updatecli apply --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml --values ./updatecli/values.temurin.yaml
2828
env:
2929
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ list: check-reqs
5151
@set -x; make --silent show | jq -r '.target | path(.. | select(.platforms[] | contains("linux/$(ARCH)"))?) | add'
5252

5353
bats:
54-
git clone --branch v1.10.0 https://github.com/bats-core/bats-core bats
54+
git clone --branch v1.11.0 https://github.com/bats-core/bats-core bats
5555

5656
prepare-test: bats check-reqs
5757
git submodule update --init --recursive

alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
ARG JAVA_VERSION=17.0.8.1_1
23+
ARG JAVA_VERSION=17.0.10_7
2424
ARG ALPINE_TAG=3.19.1
2525
FROM eclipse-temurin:"${JAVA_VERSION}"-jdk-alpine AS jre-build
2626

debian/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG JAVA_VERSION=17.0.8.1_1
1+
ARG JAVA_VERSION=17.0.10_7
22
ARG DEBIAN_RELEASE=bookworm-20240311
33
FROM eclipse-temurin:"${JAVA_VERSION}"-jdk-jammy AS jre-build
44

docker-bake.hcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ group "linux" {
44
"alpine_jdk17",
55
"alpine_jdk21",
66
"debian_jdk11",
7+
"debian_jdk17",
78
"debian_jdk21",
89
"debian_jdk21-preview",
910
]
@@ -64,11 +65,11 @@ variable "ALPINE_SHORT_TAG" {
6465
}
6566

6667
variable "JAVA11_VERSION" {
67-
default = "11.0.20.1_1"
68+
default = "11.0.22_7"
6869
}
6970

7071
variable "JAVA17_VERSION" {
71-
default = "17.0.8.1_1"
72+
default = "17.0.10_7"
7273
}
7374

7475
variable "JAVA21_VERSION" {

updatecli/scripts/check-jdk.sh

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# The source of truth is the ERB template stored at the location dist/profile/templates/jenkinscontroller/casc/tools.yaml.erb
66
# It lists all the installations used as "Jenkins Tools" by the Jenkins controllers of the infrastructure
77
##
8-
set -eu # -o pipefail
8+
set -eu -o pipefail
99

1010
command -v curl >/dev/null 2>&1 || { echo "ERROR: curl command not found. Exiting."; exit 1; }
1111

@@ -29,12 +29,20 @@ function get_jdk_download_url() {
2929
## JDK19 URLs have an underscore ('_') instead of a plus ('+') in their archive names
3030
echo "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-${jdk_version}/OpenJDK19U-jdk_${platform}_hotspot_${jdk_version//+/_}";
3131
return 0;;
32+
21*-ea-beta)
33+
# JDK preview version (21+35-ea-beta, 21.0.1+12-ea-beta)
34+
# This has been updated to support the new inferred URL pattern that started as of 21.0.3+2-ea-beta. It will not work for earlier preview versions.
35+
# One could update the cases to support all preview versions, if desired.
36+
jdk_version="${jdk_version//-beta}"
37+
## https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35-ea-beta/OpenJDK21U-jdk_aarch64_linux_hotspot_ea_21-0-35.tar.gz
38+
## https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12-ea-beta/OpenJDK21U-jdk_x64_linux_hotspot_ea_21-0-1-12.tar.gz
39+
dashJDKVersion="${jdk_version//+/_}"
40+
jdk_version="${jdk_version//-ea}"
41+
echo "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-${jdk_version//+/%2B}-ea-beta/OpenJDK21U-jdk_${platform}_hotspot_${dashJDKVersion}"
42+
return 0;;
3243
21*)
33-
# TODO: Check both generally available and early access versions, as both are in use within this repository
34-
# JDK version (21.0.1+12-ea-beta)
35-
## https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35-ea-beta/OpenJDK21U-jdk_aarch64_linux_hotspot_ea_21-0-1-12.tar.gz
36-
urlEncodedJDKVersion="${jdk_version//+/%2B}"
37-
echo "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-${urlEncodedJDKVersion}-ea-beta/OpenJDK21U-jdk_${platform}_hotspot_ea_$(echo ${jdk_version} | sed 's/+/-/g;s/\./-/g')"
44+
## JDK21 URLs have an underscore ('_') instead of a plus ('+') in their archive names
45+
echo "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-${jdk_version}/OpenJDK21U-jdk_${platform}_hotspot_${jdk_version//+/_}";
3846
return 0;;
3947
*)
4048
echo "ERROR: unsupported JDK version (${jdk_version}).";
@@ -52,8 +60,10 @@ case "${1}" in
5260
platforms=("x64_linux" "x64_windows" "aarch64_linux" "s390x_linux");;
5361
19.*+*)
5462
platforms=("x64_linux" "x64_windows" "aarch64_linux" "s390x_linux");;
55-
21*+*)
63+
21*+*-ea-beta)
5664
platforms=("x64_linux" "x64_windows" "aarch64_linux" "s390x_linux");;
65+
21*+*)
66+
platforms=("x64_linux" "x64_windows" "aarch64_linux");;
5767
*)
5868
echo "ERROR: unsupported JDK version (${1}).";
5969
exit 1;;

updatecli/updatecli.d/jdk11.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ scms:
1616
sources:
1717
jdk11LastVersion:
1818
kind: githubrelease
19-
name: Get the latest Temurin JDK11 version
19+
name: Get the latest Adoptium JDK11 version
2020
spec:
2121
owner: "adoptium"
2222
repository: "temurin11-binaries"
2323
token: "{{ requiredEnv .github.token }}"
2424
username: "{{ .github.username }}"
2525
versionfilter:
2626
kind: regex
27-
# jdk-11.0.20+8 ()https://github.com/adoptium/temurin11-binaries/releases/tag/jdk-11.0.20%2B8) is OK
28-
# jdk-11.0.20.1+1(https://github.com/adoptium/temurin11-binaries/releases/tag/jdk-11.0.20.1%2B1) is OK
29-
pattern: "^jdk-11.(\\d*).(\\d*).(\\d*)(.(\\d*))+(\\d*)$"
27+
# jdk-11.0.12+7(https://github.com/adoptium/temurin11-binaries/releases/tag/jdk-11.0.12%2B7) is OK
28+
# jdk-11.0.16.1+1 (https://github.com/adoptium/temurin11-binaries/releases/tag/jdk-11.0.16.1%2B1) is OK
29+
pattern: {{ .temurin.version_pattern }}
3030
transformers:
3131
- trimprefix: "jdk-"
3232
- replacer:
@@ -37,31 +37,31 @@ conditions:
3737
checkTemurinJDK11AlpineDockerImage:
3838
kind: dockerimage
3939
name: Check if the container image "eclipse-temurin:<jdk11LastVersion>-jdk-alpine" is available
40-
disablesourceinput: true
40+
transformers:
41+
- addsuffix: "-jdk-alpine"
4142
spec:
4243
architecture: linux/amd64
4344
image: eclipse-temurin
44-
tag: '{{source "jdk11LastVersion" }}-jdk-alpine'
4545
checkTemurinJDK11DebianDockerImages:
4646
kind: dockerimage
4747
name: Check if the container image "eclipse-temurin:<jdk11LastVersion>-jdk-jammy" is available
48-
disablesourceinput: true
48+
transformers:
49+
- addsuffix: "-jdk-jammy"
4950
spec:
5051
architectures:
5152
- linux/amd64
5253
- linux/arm64
5354
- linux/s390x
5455
- linux/arm/v7
5556
image: eclipse-temurin
56-
tag: '{{source "jdk11LastVersion" }}-jdk-jammy'
5757
checkTemurinJDK11WindowsCoreDockerImage:
5858
kind: dockerimage
5959
name: Check if the container image "eclipse-temurin:<jdk11LastVersion>-jdk-windowsservercore-1809" is available
60-
disablesourceinput: true
60+
transformers:
61+
- addsuffix: "-jdk-windowsservercore-1809"
6162
spec:
6263
architecture: windows/amd64
6364
image: eclipse-temurin
64-
tag: '{{source "jdk11LastVersion" }}-jdk-windowsservercore-1809'
6565

6666
targets:
6767
setJDK11VersionNanoServer:

updatecli/updatecli.d/jdk17.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ scms:
1616
sources:
1717
jdk17LastVersion:
1818
kind: githubrelease
19-
name: Get the latest Temurin JDK17 version
19+
name: Get the latest Adoptium JDK17 version
2020
spec:
2121
owner: "adoptium"
2222
repository: "temurin17-binaries"
@@ -26,7 +26,7 @@ sources:
2626
kind: regex
2727
# jdk-17.0.2+8(https://github.com/adoptium/temurin17-binaries/releases/tag/jdk-17.0.2%2B8) is OK
2828
# jdk-17.0.4.1+1(https://github.com/adoptium/temurin17-binaries/releases/tag/jdk-17.0.4.1%2B1) is OK
29-
pattern: "^jdk-17.(\\d*).(\\d*).(\\d*)(.(\\d*))+(\\d*)$"
29+
pattern: {{ .temurin.version_pattern }}
3030
transformers:
3131
- trimprefix: "jdk-"
3232
- replacer:
@@ -37,31 +37,31 @@ conditions:
3737
checkTemurinJDK17AlpineDockerImage:
3838
kind: dockerimage
3939
name: Check if the container image "eclipse-temurin:<jdk17LastVersion>-jdk-alpine" is available
40-
disablesourceinput: true
40+
transformers:
41+
- addsuffix: "-jdk-alpine"
4142
spec:
4243
architecture: linux/amd64
4344
image: eclipse-temurin
44-
tag: '{{source "jdk17LastVersion" }}-jdk-alpine'
4545
checkTemurinJDK17DebianDockerImages:
4646
kind: dockerimage
47-
name: Check if the container image "eclipse-temurin:<jdk17LastVersion>-jdk-jammy" is available
48-
disablesourceinput: true
47+
name: Check if the container image "eclipse-temurin:<jdk17LastVersion>-jdk-focal" is available
48+
transformers:
49+
- addsuffix: "-jdk-focal"
4950
spec:
5051
architectures:
5152
- linux/amd64
5253
- linux/arm64
5354
- linux/s390x
5455
- linux/arm/v7
5556
image: eclipse-temurin
56-
tag: '{{source "jdk17LastVersion" }}-jdk-jammy'
5757
checkTemurinJDK17WindowsCoreDockerImage:
5858
kind: dockerimage
5959
name: Check if the container image "eclipse-temurin:<jdk17LastVersion>-jdk-windowsservercore-1809" is available
60-
disablesourceinput: true
60+
transformers:
61+
- addsuffix: "-jdk-windowsservercore-1809"
6162
spec:
6263
architecture: windows/amd64
6364
image: eclipse-temurin
64-
tag: '{{source "jdk17LastVersion" }}-jdk-windowsservercore-1809'
6565

6666
targets:
6767
setJDK17VersionDockerBake:

updatecli/updatecli.d/jdk21.yaml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,55 +12,61 @@ scms:
1212
token: "{{ requiredEnv .github.token }}"
1313
username: "{{ .github.username }}"
1414
branch: "{{ .github.branch }}"
15+
temurin21-binaries:
16+
kind: "github"
17+
spec:
18+
user: "{{ .github.user }}"
19+
email: "{{ .github.email }}"
20+
owner: "adoptium"
21+
repository: "temurin21-binaries"
22+
token: '{{ requiredEnv .github.token }}'
23+
branch: "main"
1524

1625
sources:
1726
jdk21LastVersion:
18-
kind: githubrelease
19-
name: Get the latest Temurin JDK21 version
27+
name: Get the latest Adoptium JDK21 version
28+
kind: gittag
29+
scmid: temurin21-binaries
2030
spec:
21-
owner: "adoptium"
22-
repository: "temurin21-binaries"
23-
token: "{{ requiredEnv .github.token }}"
24-
username: "{{ .github.username }}"
2531
versionfilter:
2632
kind: regex
27-
# jdk-17.0.2+8(https://github.com/adoptium/temurin17-binaries/releases/tag/jdk-17.0.2%2B8) is OK
28-
# jdk-17.0.4.1+1(https://github.com/adoptium/temurin17-binaries/releases/tag/jdk-17.0.4.1%2B1) is OK
29-
pattern: "^jdk-21.(\\d*).(\\d*).(\\d*)(.(\\d*))+(\\d*)$"
33+
pattern: {{ .temurin.version_pattern }}
3034
transformers:
3135
- trimprefix: "jdk-"
3236
- replacer:
33-
from: +
34-
to: _
37+
from: "+"
38+
to: "_"
3539

3640
conditions:
3741
checkTemurinJDK21AlpineDockerImage:
3842
kind: dockerimage
3943
name: Check if the container image "eclipse-temurin:<jdk21LastVersion>-jdk-alpine" is available
40-
disablesourceinput: true
44+
transformers:
45+
- addsuffix: "-jdk-alpine"
4146
spec:
42-
architecture: linux/amd64
47+
architectures:
48+
- linux/amd64
49+
- linux/arm64
4350
image: eclipse-temurin
44-
tag: '{{source "jdk21LastVersion" }}-jdk-alpine'
4551
checkTemurinJDK21DebianDockerImages:
4652
kind: dockerimage
4753
name: Check if the container image "eclipse-temurin:<jdk21LastVersion>-jdk-jammy" is available
48-
disablesourceinput: true
54+
transformers:
55+
- addsuffix: "-jdk-jammy"
4956
spec:
5057
architectures:
5158
- linux/amd64
5259
- linux/arm64
5360
- linux/s390x
5461
image: eclipse-temurin
55-
tag: '{{source "jdk21LastVersion" }}-jdk-jammy'
5662
checkTemurinJDK21WindowsCoreDockerImage:
5763
kind: dockerimage
5864
name: Check if the container image "eclipse-temurin:<jdk21LastVersion>-jdk-windowsservercore-1809" is available
59-
disablesourceinput: true
65+
transformers:
66+
- addsuffix: "-jdk-windowsservercore-1809"
6067
spec:
6168
architecture: windows/amd64
6269
image: eclipse-temurin
63-
tag: '{{source "jdk21LastVersion" }}-jdk-windowsservercore-1809'
6470

6571
targets:
6672
setJDK21VersionDockerBake:

updatecli/values.temurin.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
temurin:
2+
version_pattern: "^jdk-[11|17|21].(\\d*).(\\d*).(\\d*)(.(\\d*))\\+(\\d*)?$"

windows/nanoserver-ltsc2019/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2222
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2323
# THE SOFTWARE.
24-
ARG JAVA_VERSION=11.0.20.1_1
24+
ARG JAVA_VERSION=11.0.22_7
2525
FROM eclipse-temurin:"${JAVA_VERSION}"-jdk-windowsservercore-1809 AS jdk-core
2626

2727
FROM mcr.microsoft.com/powershell:nanoserver-1809

windows/windowsservercore-ltsc2019/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2323
# THE SOFTWARE.
2424

25-
ARG JAVA_VERSION=11.0.20.1_1
25+
ARG JAVA_VERSION=11.0.22_7
2626
FROM eclipse-temurin:"${JAVA_VERSION}"-jdk-windowsservercore-1809
2727

2828
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

0 commit comments

Comments
 (0)