From 4bd9341b14f3e504d19965f27e55800c96aa500a Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Tue, 7 Nov 2023 13:25:54 +0000 Subject: [PATCH] Updates following review Signed-off-by: Stewart X Addison --- pipelines/build/common/build_base_file.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pipelines/build/common/build_base_file.groovy b/pipelines/build/common/build_base_file.groovy index 6b38db66e..70ac1eff8 100644 --- a/pipelines/build/common/build_base_file.groovy +++ b/pipelines/build/common/build_base_file.groovy @@ -765,7 +765,7 @@ class Builder implements Serializable { tag = publishName } - if ((javaToBuild=="jdk21" || javaToBuild=="jdk") && scmReference && !release) { + if ((javaVersion=="jdk21" || javaVersion=="jdk22") && scmReference && !release) { publishName = scmReference.replace('_adopt','') def firstDot=publishName.indexOf('.') def plusSign=publishName.indexOf('+') @@ -787,8 +787,8 @@ class Builder implements Serializable { parameters: [ ['$class': 'BooleanParameterValue', name: 'RELEASE', value: release], ['$class': 'BooleanParameterValue', name: 'DRY_RUN', value: false], - context.string(name: 'TAG', value: ((scmReference && (javaToBuild=="jdk21" || javaToBuild=="jdk"))?(scmReference.replace('_adopt','')):tag)), - context.string(name: 'TIMESTAMP', value: ((javaToBuild=="jdk21" || javaToBuild=="jdk")?publishName:timestamp)), + context.string(name: 'TAG', value: ((scmReference && (javaVersion=="jdk21" || javaVersion=="jdk22"))?(scmReference.replace('_adopt','')):tag)), + context.string(name: 'TIMESTAMP', value: ((javaVersion=="jdk21" || javaVersion=="jdk22")?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)