Skip to content

Commit

Permalink
For JDK head, use alternate file/release name
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa committed Jun 9, 2023
1 parent b6a9e4e commit c438969
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c438969

Please sign in to comment.