Skip to content

Commit

Permalink
Adjust for JDK21 and 22
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <sxa@redhat.com>
  • Loading branch information
sxa committed Nov 6, 2023
1 parent 668fdf8 commit 12e79d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ class Builder implements Serializable {
tag = publishName
}

if (javaToBuild=="jdk21" && scmReference && !release) {
if ((javaToBuild=="jdk21" || javaToBuild=="jdk") && scmReference && !release) {
publishName = scmReference.replace('_adopt','')
def firstDot=publishName.indexOf('.')
def plusSign=publishName.indexOf('+')
Expand All @@ -787,8 +787,8 @@ class Builder implements Serializable {
parameters: [
['$class': 'BooleanParameterValue', name: 'RELEASE', value: release],
['$class': 'BooleanParameterValue', name: 'DRY_RUN', value: ((releaseType=="Weekly" && javaVersion=="jdk21") ? true : false)],
context.string(name: 'TAG', value: (javaToBuild=="jdk21"?(scmReference.replace('_adopt','')):tag)),
context.string(name: 'TIMESTAMP', value: (javaToBuild=="jdk"?publishName:timestamp)),
context.string(name: 'TAG', value: ((javaToBuild=="jdk21" || javaToBuild=="jdk")?(scmReference.replace('_adopt','')):tag)),
context.string(name: 'TIMESTAMP', value: ((javaToBuild="jdk21" || javaToBuild=="jdk")?publishName:timestamp)),
context.string(name: 'UPSTREAM_JOB_NAME', value: env.JOB_NAME),
context.string(name: 'UPSTREAM_JOB_NUMBER', value: "${currentBuild.getNumber()}"),
context.string(name: 'VERSION', value: javaVersion)
Expand Down

0 comments on commit 12e79d4

Please sign in to comment.