Skip to content

Commit

Permalink
Fix weekly check logic (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxa authored Jun 28, 2023
1 parent 7217406 commit 001f5fb
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 @@ -760,21 +760,21 @@ class Builder implements Serializable {

def timestamp = new Date().format('yyyy-MM-dd-HH-mm', TimeZone.getTimeZone('UTC'))
def tag = "${javaToBuild}-${timestamp}"
def javaVersion=determineReleaseToolRepoVersion()
if (publishName) {
tag = publishName
}


context.stage('publish') {
context.build job: 'build-scripts/release/refactor_openjdk_release_tool',
parameters: [
['$class': 'BooleanParameterValue', name: 'RELEASE', value: release],
['$class': 'BooleanParameterValue', name: 'DRY_RUN', value: (isWeekly ? true : false)],
['$class': 'BooleanParameterValue', name: 'DRY_RUN', value: ((releaseType=="Weekly" && javaVersion=="jdk21") ? true : false)],
context.string(name: 'TAG', value: tag),
context.string(name: 'TIMESTAMP', value: 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: determineReleaseToolRepoVersion())
context.string(name: 'VERSION', value: javaVersion )
]
}
}
Expand Down

0 comments on commit 001f5fb

Please sign in to comment.