Skip to content

Commit

Permalink
Special case jdk8u Solaris beta trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
  • Loading branch information
andrew-m-leonard committed Dec 19, 2024
1 parent fd4b53c commit dd9edba
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions pipelines/build/common/trigger_beta_build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,17 @@ if (triggerMainBuild || triggerEvaluationBuild) {
// Trigger pipeline builds for main & evaluation of the new build tag and publish with the "ea" tag
def jobs = [:]
def pipelines = [:]
def solarisBuildJob = false

// Trigger Main pipeline as long as we have a non-empty target configuration
if (triggerMainBuild && mainTargetConfigurations != "{}") {
pipelines["main"] = "build-scripts/openjdk${version}-pipeline"
if (version == 8 && (mainTargetConfigurations.contains("x64Solaris") || mainTargetConfigurations.contains("sparcv9Solaris"))) {
// Special case to handle building jdk8u Solaris
pipelines["main"] = "build-scripts/jobs/jdk8u/jdk8u-solaris-x64-temurin-simple"
solarisBuildJob = true
} else {
pipelines["main"] = "build-scripts/openjdk${version}-pipeline"
}
echo "main build targetConfigurations:"
echo JsonOutput.prettyPrint(mainTargetConfigurations)
}
Expand All @@ -297,14 +304,22 @@ if (triggerMainBuild || triggerEvaluationBuild) {
stage("Trigger build pipeline - ${pipeline}") {
echo "Triggering ${pipeline} for $latestAdoptTag"

def jobParams = [
def jobParams
if (solarisBuildJob) {
jobParams = [
string(name: 'VARIANT', value: "$variant"),
string(name: 'SCM_REF', value: "$latestAdoptTag"),
]
} else {
jobParams = [
string(name: 'releaseType', value: "Weekly"),
string(name: 'scmReference', value: "$latestAdoptTag"),
string(name: 'overridePublishName', value: "$publishJobTag"),
booleanParam(name: 'aqaAutoGen', value: true),
booleanParam(name: 'enableTests', value: enableTesting),
string(name: 'additionalConfigureArgs', value: "$additionalConfigureArgs")
]
}

// Specify the required targetConfigurations
if (pipeline_type == "main") {
Expand Down

0 comments on commit dd9edba

Please sign in to comment.