Skip to content

Commit b7e00a7

Browse files
Update: change weekly pipeline releaseType from "Release" to "Weekly" (#639)
* Update: change weekly pipeline releaseType from "Release" to "Weekly" Signed-off-by: Wen Zhou <[email protected]> * Update: add new field "WEEKLY" to indicate downstream job to run TCK job - this need to update IndividualBuildConfig in "jenkins-helper" Signed-off-by: Zhou, Wen <[email protected]> --------- Signed-off-by: Wen Zhou <[email protected]> Signed-off-by: Zhou, Wen <[email protected]> Co-authored-by: Andrew Leonard <[email protected]>
1 parent fd55f4c commit b7e00a7

File tree

7 files changed

+15
-10
lines changed

7 files changed

+15
-10
lines changed

pipelines/build/common/build_base_file.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ class Builder implements Serializable {
9898
javaToBuild = 'jdk'
9999
}
100100

101+
Boolean isWeekly = (releaseType == "Weekly") ? true : false
102+
101103
def additionalNodeLabels = formAdditionalBuildNodeLabels(platformConfig, variant)
102104

103105
def additionalTestLabels = formAdditionalTestLabels(platformConfig, variant)
@@ -177,6 +179,7 @@ class Builder implements Serializable {
177179
ADDITIONAL_FILE_NAME_TAG: platformConfig.additionalFileNameTag as String,
178180
JDK_BOOT_VERSION: platformConfig.bootJDK as String,
179181
RELEASE: release,
182+
WEEKLY: isWeekly,
180183
PUBLISH_NAME: publishName,
181184
ADOPT_BUILD_NUMBER: adoptBuildNumber,
182185
ENABLE_REPRODUCIBLE_COMPARE: enableReproducibleCompare,

pipelines/build/common/config_regeneration.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ class Regeneration implements Serializable {
480480
ADDITIONAL_FILE_NAME_TAG: platformConfig.additionalFileNameTag as String,
481481
JDK_BOOT_VERSION: platformConfig.bootJDK as String,
482482
RELEASE: false,
483+
WEEKLY: false,
483484
PUBLISH_NAME: '',
484485
ADOPT_BUILD_NUMBER: '',
485486
ENABLE_REPRODUCIBLE_COMPARE: enableReproducibleCompare,

pipelines/build/common/openjdk_build_pipeline.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ class Build {
17301730
def enableTests = Boolean.valueOf(buildConfig.ENABLE_TESTS)
17311731
def enableInstallers = Boolean.valueOf(buildConfig.ENABLE_INSTALLERS)
17321732
def enableSigner = Boolean.valueOf(buildConfig.ENABLE_SIGNER)
1733-
def isRelease = Boolean.valueOf(buildConfig.RELEASE)
1733+
def enableTCK = Boolean.valueOf(buildConfig.RELEASE) || Boolean.valueOf(buildConfig.WEEKLY)
17341734
def useAdoptShellScripts = Boolean.valueOf(buildConfig.USE_ADOPT_SHELL_SCRIPTS)
17351735
def cleanWorkspace = Boolean.valueOf(buildConfig.CLEAN_WORKSPACE)
17361736
def cleanWorkspaceAfter = Boolean.valueOf(buildConfig.CLEAN_WORKSPACE_AFTER)
@@ -1923,7 +1923,7 @@ class Build {
19231923
//Only smoke tests succeed TCK and AQA tests will be triggerred.
19241924
if (runSmokeTests() == 'SUCCESS') {
19251925
// Remote trigger Eclipse Temurin JCK tests
1926-
if (buildConfig.VARIANT == 'temurin' && isRelease) {
1926+
if (buildConfig.VARIANT == 'temurin' && enableTCK) {
19271927
def platform = ''
19281928
if (buildConfig.ARCHITECTURE.contains('x64')) {
19291929
platform = 'x86-64_' + buildConfig.TARGET_OS

pipelines/build/common/weekly_release_pipeline.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ stage('Submit Release Pipelines') {
2929
cleanWs notFailBuild: false
3030
}
3131

32-
// For each variant, create a weekly pipeline job with release as "releaseType"
32+
// For each variant, create a weekly pipeline job with "Weekly" as "releaseType"
3333
scmRefs.each { variant ->
3434
def variantName = variant.key
3535
def scmRef = variant.value
@@ -47,12 +47,12 @@ stage('Submit Release Pipelines') {
4747
stage("Build - ${params.buildPipeline} - ${variantName}") {
4848
result = build job: "${params.buildPipeline}",
4949
parameters: [
50-
string(name: 'releaseType', value: 'Release'),
50+
string(name: 'releaseType', value: 'Weekly'),
5151
string(name: 'scmReference', value: scmRef),
5252
text(name: 'targetConfigurations', value: JsonOutput.prettyPrint(JsonOutput.toJson(targetConfig))),
5353
['$class': 'BooleanParameterValue', name: 'keepReleaseLogs', value: false]
5454
]
55-
// For reproducible builds (releaseType==Release) to have comparison on multiple builds' artifacts.
55+
// For reproducible builds to have comparison on multiple builds' artifacts.
5656
// Copy artifacts from downstream and archive again on weekly-pipeline. For details, see issue: https://github.com/adoptium/ci-jenkins-pipelines/issues/301
5757
if (result.getCurrentResult() == 'SUCCESS') {
5858
node('worker') {

pipelines/build/regeneration/build_pipeline_generator.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ node('worker') {
254254
if (enablePipelineSchedule.toBoolean()) {
255255
config.put('pipelineSchedule', target.triggerSchedule_weekly)
256256
}
257-
config.releaseType = "Release"
257+
config.releaseType = "Weekly"
258258

259259
println "[INFO] CREATING JDK${javaVersion} WEEKLY RELEASE PIPELINE WITH NEW CONFIG VALUES:"
260260
println "JOB_NAME = ${config.JOB_NAME}"

pipelines/jobs/release_pipeline_job_template.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pipelineJob("${BUILD_FOLDER}/${JOB_NAME}") {
6262
parameters {
6363
// important items to verify before trigger release pipeline
6464
textParam('targetConfigurations', JsonOutput.prettyPrint(JsonOutput.toJson(targetConfigurations)))
65-
stringParam('releaseType', 'Release', "only for release purpose")
65+
stringParam('releaseType', 'Release', "only for official release purpose")
6666
booleanParam('useAdoptBashScripts', true, "If enabled, the downstream job will pull and execute <code>make-adopt-build-farm.sh</code> from adoptium/temurin-build. If disabled, it will use whatever the job is running inside of at the time, usually it's the default repository in the configuration.")
6767
stringParam('scmReference', '', 'Tag name or Branch name from which openjdk source code repo to build')
6868
stringParam('buildReference', releaseTag, 'SHA1 or Tag name or Branch name of temurin-build repo. Defaults to master')

pipelines/src/test/groovy/IndividualBuildConfigTest.groovy

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import groovy.json.JsonOutput
33
import org.junit.jupiter.api.Assertions
44
import org.junit.jupiter.api.Test
55

6-
/**
7-
* Tests for IndividualBuildConfig
8-
*/
6+
/** Test Class for IndividualBuildConfig.
7+
* @author Adoptium Temurin
8+
*/
99
class IndividualBuildConfigTest {
1010

1111
@Test
@@ -43,6 +43,7 @@ class IndividualBuildConfigTest {
4343
ADDITIONAL_FILE_NAME_TAG : 'k',
4444
JDK_BOOT_VERSION : 'l',
4545
RELEASE : false,
46+
WEEKLY : false,
4647
PUBLISH_NAME : 'm',
4748
ADOPT_BUILD_NUMBER : 'n',
4849
ENABLE_TESTS : true,

0 commit comments

Comments
 (0)