Skip to content

Commit

Permalink
Special case jdk8u Solaris beta trigger (#1169)
Browse files Browse the repository at this point in the history
* Special case jdk8u Solaris beta trigger

Signed-off-by: Andrew Leonard <[email protected]>

* jdk8u Solaris betaTrigger

Signed-off-by: Andrew Leonard <[email protected]>

* jdk8u Solaris betaTrigger

Signed-off-by: Andrew Leonard <[email protected]>

---------

Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard authored Jan 10, 2025
1 parent 82afcc4 commit 86a8e70
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions pipelines/build/common/trigger_beta_build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ node('worker') {
} else if (mirrorRepo.contains("alpine-jdk8u")) {
// alpine-jdk8u built in its own pipeline
jdkAssetToCheck = "x64_alpine-linux"
} else if (version == 8 && mainTargetConfigurations.contains("x64Solaris")) {
// Solaris built in own pipeline
jdkAssetToCheck = "x64_solaris"
} else if (version == 8 && mainTargetConfigurations.contains("sparcv9Solaris")) {
// Solaris built in own pipeline
jdkAssetToCheck = "sparcv9_solaris"
}

echo "Checking if ${binariesRepoTag} is already published for JDK asset ${jdkAssetToCheck} ?"
Expand Down Expand Up @@ -276,10 +282,21 @@ 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
if (mainTargetConfigurations.contains("x64Solaris")) {
pipelines["main"] = "build-scripts/jobs/jdk8u/jdk8u-solaris-x64-temurin-simplepipe"
} else {
pipelines["main"] = "build-scripts/jobs/jdk8u/jdk8u-solaris-sparcv9-temurin-simplepipe"
}
solarisBuildJob = true
} else {
pipelines["main"] = "build-scripts/openjdk${version}-pipeline"
}
echo "main build targetConfigurations:"
echo JsonOutput.prettyPrint(mainTargetConfigurations)
}
Expand All @@ -297,14 +314,22 @@ if (triggerMainBuild || triggerEvaluationBuild) {
stage("Trigger build pipeline - ${pipeline}") {
echo "Triggering ${pipeline} for $latestAdoptTag"

def jobParams = [
def jobParams
if (solarisBuildJob) {
jobParams = [
booleanParam(name: 'RELEASE', value: false),
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 86a8e70

Please sign in to comment.