Skip to content

Commit

Permalink
Carrying over jdk21 changes to jdk22 and up
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Farley <[email protected]>
  • Loading branch information
adamfarley committed Mar 12, 2024
1 parent 88e2e43 commit e8e8a5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions linux/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pipeline {
}
parameters {
choice(name: 'TYPE', choices: Types.ALL, description: 'Build JDK or JRE')
choice(name: 'VERSION', choices: ['8', '11', '17', '21'], description: 'Build for specific JDK VERSION')
choice(name: 'VERSION', choices: ['8', '11', '17', '21', '22'], description: 'Build for specific JDK VERSION')
choice(name: 'ARCH', choices: ['x86_64', 'armv7hl', 'armv7l', 'aarch64', 'ppc64le', 's390x', 'all'], description: 'Build for specific platform\n s390x not for VERSION 8\n Use armv7l for DebARM32 armv7hl for RH/Suse')
choice(name: 'DISTRO', choices: ['all', 'Alpine', 'Debian', 'RedHat', 'Suse'], description: 'Build for specific Distro\n Select RPM builds for RedHat and Suse')
booleanParam(name: 'uploadPackage', defaultValue: false, description: 'Tick this box to upload the deb/rpm files (exclude src.rpm) to Artifactory for official release')
Expand Down Expand Up @@ -253,7 +253,7 @@ def jenkinsStepAlpine() {
apkArchAllList = ['x86_64', 'aarch64']
}
// remove aarch64 for JDK20 and below
if ("${VERSION}" != '21') {
if (${VERSION} -lt 21) {
apkArchAllList.remove('aarch64')
}

Expand Down
2 changes: 1 addition & 1 deletion linux/jre/redhat/src/main/packaging/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ echo "DEBUG: building RH arch ${buildArch} with jre version ${buildVersion}"
# Build specified target or build all
if [ "${buildArch}" != "all" ]; then
targets=${buildArch}
elif [ "${buildVersion}" = "21" ]; then
elif [ ${buildVersion} -gt 20 ]; then
targets="x86_64 ppc64le aarch64"
else
targets="x86_64 ppc64le aarch64 armv7hl s390x"
Expand Down
2 changes: 1 addition & 1 deletion linux/jre/suse/src/main/packaging/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo "DEBUG: building Suse arch ${buildArch} with version ${buildVersion}"
# Build specified target or build all (not s390x on jre8)
if [ "${buildArch}" != "all" ]; then
targets=${buildArch}
elif [ "${buildVersion}" = "21" ]; then
elif [ ${buildVersion} -gt 20 ]; then
targets="x86_64 ppc64le aarch64"
else
targets="x86_64 ppc64le aarch64 armv7hl s390x"
Expand Down

0 comments on commit e8e8a5e

Please sign in to comment.