From c4389699b96210661098704b45ff1813b0f62ccb Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Fri, 9 Jun 2023 10:36:04 +0100 Subject: [PATCH] For JDK head, use alternate file/release name Signed-off-by: Stewart X Addison --- pipelines/build/common/build_base_file.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pipelines/build/common/build_base_file.groovy b/pipelines/build/common/build_base_file.groovy index 78650278f..daae911a3 100644 --- a/pipelines/build/common/build_base_file.groovy +++ b/pipelines/build/common/build_base_file.groovy @@ -732,6 +732,11 @@ class Builder implements Serializable { } def timestamp = new Date().format('yyyy-MM-dd-HH-mm', TimeZone.getTimeZone('UTC')) + if (javaToBuild == "jdk${headVersion}") { + timestamp = "ea.${scmReference}".replaceAll("jdk-","").replaceAll("_adopt","").replaceAll("/\.\+/",""); + } else { + timestamp = new Date().format('yyyy-MM-dd-HH-mm', TimeZone.getTimeZone('UTC')) + } def tag = "${javaToBuild}-${timestamp}" if (publishName) {