Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterized Generators and Pipelines #2132

Merged
merged 166 commits into from
Feb 4, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
e11260a
Parameterised build pipeline generator
M-Davies Oct 8, 2020
7fb794e
Implement file path param in pipelines
M-Davies Oct 14, 2020
810d5b3
Pass in new params to pr tester
M-Davies Oct 15, 2020
417e273
configureBuild is already declared, add test stub
M-Davies Oct 15, 2020
5cad197
Merge branch 'master' into parameterised_everything
M-Davies Oct 28, 2020
0cb37e1
Better error handling for regen
M-Davies Oct 30, 2020
3aff2b6
Remove inline if's
M-Davies Oct 30, 2020
b58a2f5
Use elvis operators
M-Davies Nov 6, 2020
b3dce3e
Multiple Regen updates
M-Davies Nov 6, 2020
d17a132
Clean up whitespaces
M-Davies Nov 12, 2020
f0c6c18
Create initial defaults json
M-Davies Nov 27, 2020
db96a8a
Merge branch 'master' into parameterised_everything
M-Davies Nov 27, 2020
076180b
Don't generate triggers if no schedule
M-Davies Nov 30, 2020
58e2ce5
Parameterise as much as possible in defaults.json
M-Davies Nov 30, 2020
8a3589f
Try using jenkins readJson
M-Davies Dec 1, 2020
9e16f75
Try as empty stub
M-Davies Dec 3, 2020
67e9115
Try with empty func
M-Davies Dec 3, 2020
898e306
Try as list
M-Davies Dec 3, 2020
ce81162
Try replicating jenkins src impl
M-Davies Dec 3, 2020
e54532b
Basic def function declaration
M-Davies Dec 3, 2020
35a8ce7
Try as string method (since java.langString is classname in error)
M-Davies Dec 3, 2020
1d4d100
Ensure to specifiy map when pulling in JSON
M-Davies Dec 3, 2020
73b6bea
Try declaring as a func
M-Davies Dec 4, 2020
0c54207
Change implementation back to file since readJSON cannot be done with…
M-Davies Dec 4, 2020
0a1207c
Specify param name in impl
M-Davies Dec 4, 2020
5ce8be3
It's parseText for strings *facepalm*
M-Davies Dec 4, 2020
5988a7c
Use readFile outside of json slurp
M-Davies Dec 4, 2020
0b37810
Use defs, specify param name
M-Davies Dec 4, 2020
5628930
Move all read files into master node
M-Davies Dec 4, 2020
faf7f04
Merge branch 'master' into parameterised_everything
M-Davies Dec 4, 2020
3b48b63
Ensure the build testers have access to platform configs
M-Davies Dec 4, 2020
780529a
Revert addition of timestamps
M-Davies Dec 4, 2020
8d400ff
Download the defaults.json file instead of trying to open it
M-Davies Dec 4, 2020
f2aefaf
Try parse
M-Davies Dec 4, 2020
7a4e4fc
Create URL class instance seperatly
M-Davies Dec 4, 2020
c368349
Remove unessassary json convert
M-Davies Dec 4, 2020
d9901b1
Update param to current version
M-Davies Dec 4, 2020
652c8a6
Remove unessassry workspace paths
M-Davies Dec 4, 2020
ab4ec74
see if adding scm checkout back in fixes not found lib
M-Davies Dec 4, 2020
54c4e15
Fix bug in version pipeline, now will always use sanitised value
M-Davies Dec 4, 2020
2cd20d7
Init default config paths after java version update parsing
M-Davies Dec 4, 2020
c70229d
Spelling
M-Davies Dec 4, 2020
036a66c
Remove as Map
M-Davies Dec 5, 2020
5699b0b
Instantiate as a map
M-Davies Dec 5, 2020
85b31df
Try not parsing at all?
M-Davies Dec 5, 2020
2b50721
Pretty print JSON to prevent parising error
M-Davies Dec 5, 2020
488c2c2
Remove extra parsing in downstream pipeline
M-Davies Dec 5, 2020
8203dc6
Add error handling for missing JSON file
M-Davies Dec 5, 2020
0a7dc7e
defaultJson -> defaultsJson
M-Davies Dec 5, 2020
59a10b9
Pass in json defaults to pr tester
M-Davies Dec 5, 2020
f3989ee
Fix bug in triggerSchedule setting
M-Davies Dec 6, 2020
6177dd0
Pretty print out config for top level generator
M-Davies Dec 6, 2020
830aa30
Add missing params to config regen script
M-Davies Dec 6, 2020
ff7dce5
Update other regen files to match working jdk8
M-Davies Dec 7, 2020
b436e12
Update main pipeline files to match jdk8
M-Davies Dec 7, 2020
c0c4f6d
Remove unimportant pipelineSchedule
M-Davies Dec 7, 2020
055130a
Move checkout further up
M-Davies Dec 10, 2020
ec7a84e
Parameterise the defaults json
M-Davies Dec 10, 2020
5235353
Move defaults json further up
M-Davies Dec 10, 2020
85e1516
Trial loading lib after checkout in downstream regen
M-Davies Dec 10, 2020
2b75374
Pretty print out in regen
M-Davies Dec 10, 2020
c80e3b3
Parameterise lib path, strong defaultsJson description
M-Davies Dec 11, 2020
782fb4b
Parameterise regen script path
M-Davies Dec 11, 2020
634e1da
Parameterise lib and downstream basefile paths, intelligently pulling…
M-Davies Dec 14, 2020
e82a4ec
More credential changes
M-Davies Dec 15, 2020
d59a2cd
Renamed var and switch back user/pass
M-Davies Dec 15, 2020
ba368bd
Try with username/colon
M-Davies Dec 15, 2020
9ba9b37
More credential changes
M-Davies Dec 15, 2020
257e104
double quotes
M-Davies Dec 17, 2020
432df51
single quotes
M-Davies Dec 17, 2020
bb87771
access var directly
M-Davies Dec 17, 2020
ec26e9e
double quotes var
M-Davies Dec 17, 2020
08baf2d
single quotes var (normal)
M-Davies Dec 17, 2020
572daaa
Merge branch 'parameterised_everything' of github.com:M-Davies/openjd…
M-Davies Dec 18, 2020
96ce540
Strongify defaults param
M-Davies Dec 18, 2020
f450e97
Merge branch 'master' into parameterised_everything
M-Davies Dec 18, 2020
faa05d2
Renames jobTemplateDirectories to templateDirectories
M-Davies Dec 21, 2020
d253c5e
Trial checkout system in build generator
M-Davies Dec 22, 2020
43af112
Manually create methods for pipeline generator since there's no lib t…
M-Davies Dec 23, 2020
21ac069
Minor updates
M-Davies Dec 23, 2020
56f9d70
Remove WORKSPACE from params
M-Davies Dec 23, 2020
1ef7cc1
Ensure we use the right template path and checkout
M-Davies Dec 23, 2020
e0269ce
Always clean up
M-Davies Dec 23, 2020
5ec0a3f
Clean up boolean logic
M-Davies Dec 23, 2020
b37fb22
Try parsing the boolean
M-Davies Dec 23, 2020
5c697da
Try using a if else block
M-Davies Dec 23, 2020
9f56a10
Try using a noSchedule config
M-Davies Dec 23, 2020
cd26749
Remove potentinally useless try-catch
M-Davies Dec 23, 2020
fdf383b
Remove attempts at changing the template logic
M-Davies Jan 5, 2021
34fee6c
Add Repo Switching to Downstream job generator
M-Davies Jan 6, 2021
06c799f
Remove RepoHandler from top level files
M-Davies Jan 6, 2021
f6861da
Declare closure outside of scope
M-Davies Jan 6, 2021
7912b57
Finish setting up generators, passing down everything the jobs
M-Davies Jan 6, 2021
a4c3c6a
Replace empty pipelineSchedule in config
M-Davies Jan 6, 2021
15c5478
Conform remaining files
M-Davies Jan 7, 2021
7517ea1
Try update version after normal to be consistent
M-Davies Jan 8, 2021
046df46
Make generators less inclusive
M-Davies Jan 8, 2021
4ac8d3f
Declare var outside of try catch
M-Davies Jan 8, 2021
d05f5e9
f
M-Davies Jan 8, 2021
c7df168
Enter blank checkout creds if they don't exist
M-Davies Jan 8, 2021
b26ec94
Merge branch 'parameterised_everything' of github.com:M-Davies/openjd…
M-Davies Jan 10, 2021
77458bd
MAke lib load in pipeline a global exception
M-Davies Jan 10, 2021
25b3d57
Mapify user remote configs
M-Davies Jan 12, 2021
3607292
Do map parsing further up
M-Davies Jan 12, 2021
08ef896
Try constructor map
M-Davies Jan 12, 2021
e3c2bc8
Try declaring "as Map"
M-Davies Jan 12, 2021
455e9a6
Try using json slurper to parse map to be consistent
M-Davies Jan 12, 2021
8a20767
Use JsonSluprers across downstream generation
M-Davies Jan 12, 2021
e2c06b6
Try using dot logic for assigning json values
M-Davies Jan 12, 2021
e39801e
Add use adopt bash scripts param
M-Davies Jan 12, 2021
99c9b42
Introduce constructor for build_base_file
M-Davies Jan 12, 2021
d0ec0f9
Remove hashmap references in class instantiation
M-Davies Jan 18, 2021
9c2897a
Remove hashmap values
M-Davies Jan 18, 2021
0766044
Clean up Platform config parsing
M-Davies Jan 18, 2021
8e5e151
Ensure file is created and ran
M-Davies Jan 18, 2021
74c44f9
Try creating files first
M-Davies Jan 18, 2021
b3f73ed
Try specify true
M-Davies Jan 18, 2021
53303cc
try checking if it is a true string
M-Davies Jan 18, 2021
d164f93
stringify everything
M-Davies Jan 18, 2021
53de198
Booleanify useAdoptBashScripts
M-Davies Jan 18, 2021
5dcd51e
try normal logic
M-Davies Jan 18, 2021
4eebfab
See what useAdoptBashScripts is
M-Davies Jan 18, 2021
804e08e
debug
M-Davies Jan 18, 2021
bb929db
Move debug
M-Davies Jan 18, 2021
6ef6ae0
Rejig order of params
M-Davies Jan 18, 2021
94e5b5c
debug
M-Davies Jan 19, 2021
1c2678e
Try using file redirect
M-Davies Jan 19, 2021
d5793a8
Adjust how branch and URL is determinted for platform config pulling
M-Davies Jan 20, 2021
58defe4
debug
M-Davies Jan 20, 2021
dc8677c
Addiotional https
M-Davies Jan 20, 2021
4803b27
rm debug
M-Davies Jan 20, 2021
96989c6
Remove extra uneeded parsing code
M-Davies Jan 20, 2021
84f0623
Allow generation of useAdoptBashScripts
M-Davies Jan 20, 2021
f70268b
Merge branch 'master' into parameterised_everything
M-Davies Jan 21, 2021
7d8657f
Add weekly template
M-Davies Jan 21, 2021
8db00b6
Amend failing tests
M-Davies Jan 21, 2021
09fba71
Update testers
M-Davies Jan 21, 2021
3d79cb3
Try again with tests
M-Davies Jan 21, 2021
da5fc5e
Cast and set splitAdoptUrl as object
M-Davies Jan 21, 2021
4539123
triggerSchedule -> pipelineSchedule
M-Davies Jan 22, 2021
70aa376
Update tester
M-Davies Jan 22, 2021
430d519
Change around scripts to add common stuff into bash
M-Davies Jan 22, 2021
4d24f2a
Flesh out testing suite for RepoHandler
M-Davies Jan 22, 2021
b7be38d
Remove duped JDK14 Aix key
M-Davies Jan 23, 2021
c57a6db
First doc updates
M-Davies Jan 26, 2021
a479d01
Merge branch 'master' into parameterised_everything
M-Davies Jan 26, 2021
6bdee28
More brevity on build generator output
M-Davies Jan 26, 2021
247885e
Comment and compatibility upgrades
M-Davies Jan 26, 2021
4a2c14f
Add in an additional check for platforms on a failed direct link
M-Davies Jan 26, 2021
1276acf
Debug out better
M-Davies Jan 26, 2021
a507f27
Amend config location for test builds
M-Davies Jan 26, 2021
a1d14c2
Merge branch 'master' into parameterised_everything
M-Davies Jan 26, 2021
04a737a
Specify no OS on linux pr build
M-Davies Jan 26, 2021
6e2fbc0
Reduce duration of build generator by querying adopt api
M-Davies Jan 26, 2021
10a6163
Functionise download script
M-Davies Jan 28, 2021
20fe05b
Clean up echos, make bash method a function
M-Davies Jan 28, 2021
7658666
Use regex when checking error code
M-Davies Jan 28, 2021
2c2f671
Remove TODO's and update other pipeline files
M-Davies Jan 29, 2021
6211859
Minor comment and styling updates
M-Davies Jan 30, 2021
87b5bdd
Align map entries, replace semi-colon with colon
M-Davies Feb 1, 2021
2025424
Remove compile testing on pr tester
M-Davies Feb 1, 2021
1de8a8b
Change name of jenkins credentials
M-Davies Feb 2, 2021
17bbc5b
Merge branch 'master' into parameterised_everything
M-Davies Feb 2, 2021
0079363
USE_ADOPT_BASH_SCRIPTS -> USE_ADOPT_SHELL_SCRIPTS
M-Davies Feb 3, 2021
8d762f9
Made nessassary changes
M-Davies Feb 3, 2021
337a252
Merge branch 'master' into parameterised_everything
M-Davies Feb 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion build-farm/set-platform-specific-configurations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ fi
export VARIANT_ARG="--build-variant ${VARIANT}"

# shellcheck disable=SC1091,SC1090
source "$SCRIPT_DIR/platform-specific-configurations/${OPERATING_SYSTEM}.sh"
if [ ! -z "$PLATFORM_CONFIG_PATH" ]
then
source "$SCRIPT_DIR/${PLATFORM_CONFIG_PATH}"
else
source "$SCRIPT_DIR/platform-specific-configurations/${OPERATING_SYSTEM}.sh"
fi
11 changes: 11 additions & 0 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class Builder implements Serializable {

def dockerNode = getDockerNode(platformConfig, variant)

def platformSpecificConfigPath = getPlatformSpecificConfigPath(platformConfig)

def buildArgs = getBuildArgs(platformConfig, variant)

if (additionalBuildArgs) {
Expand Down Expand Up @@ -98,6 +100,7 @@ class Builder implements Serializable {
DOCKER_IMAGE: dockerImage,
DOCKER_FILE: dockerFile,
DOCKER_NODE: dockerNode,
PLATFORM_CONFIG_PATH: platformSpecificConfigPath,
CONFIGURE_ARGS: getConfigureArgs(platformConfig, additionalConfigureArgs, variant),
OVERRIDE_FILE_NAME_VERSION: overrideFileNameVersion,
ADDITIONAL_FILE_NAME_TAG: platformConfig.additionalFileNameTag as String,
Expand Down Expand Up @@ -227,6 +230,14 @@ class Builder implements Serializable {
return dockerNodeValue
}

def getPlatformSpecificConfigPath(Map<String, ?> configuration) {
def platformSpecificConfigPath = ""
if (configuration.containsKey("platformSpecificConfigPath")) {
platformSpecificConfigPath = configuration.platformSpecificConfigPath
}
return platformSpecificConfigPath
}

/**
* Builds up a node param string that defines what nodes are eligible to run the given job
* @param configuration
Expand Down
26 changes: 25 additions & 1 deletion pipelines/build/common/config_regeneration.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class Regeneration implements Serializable {
private final def gitUri
private final def gitBranch

private final def jobTemplatePath
private final def scriptPath
private final def jenkinsBuildRoot
private final def jenkinsUsername
private final def jenkinsToken
Expand All @@ -53,6 +55,8 @@ class Regeneration implements Serializable {
String jobRootDir,
String gitUri,
String gitBranch,
String jobTemplatePath,
String scriptPath,
String jenkinsBuildRoot,
String jenkinsUsername,
String jenkinsToken
Expand All @@ -66,6 +70,8 @@ class Regeneration implements Serializable {
this.jobRootDir = jobRootDir
this.gitUri = gitUri
this.gitBranch = gitBranch
this.jobTemplatePath = jobTemplatePath
this.scriptPath = scriptPath
this.jenkinsBuildRoot = jenkinsBuildRoot
this.jenkinsUsername = jenkinsUsername
this.jenkinsToken = jenkinsToken
Expand Down Expand Up @@ -130,6 +136,14 @@ class Regeneration implements Serializable {
return dockerNodeValue
}

def getPlatformSpecificConfigPath(Map<String, ?> configuration) {
def platformSpecificConfigPath = ""
if (configuration.containsKey("platformSpecificConfigPath")) {
platformSpecificConfigPath = configuration.platformSpecificConfigPath
}
return platformSpecificConfigPath
}

/**
* Builds up a node param string that defines what nodes are eligible to run the given job. Used as a placeholder since the pipelines overwrite this.
* @param configuration
Expand Down Expand Up @@ -253,6 +267,8 @@ class Regeneration implements Serializable {

def dockerNode = getDockerNode(platformConfig, variant)

def platformSpecificConfigPath = getPlatformSpecificConfigPath(platformConfig)

def buildArgs = getBuildArgs(platformConfig, variant)

def testList = getTestList(platformConfig)
Expand All @@ -270,6 +286,7 @@ class Regeneration implements Serializable {
DOCKER_IMAGE: dockerImage,
M-Davies marked this conversation as resolved.
Show resolved Hide resolved
DOCKER_FILE: dockerFile,
DOCKER_NODE: dockerNode,
PLATFORM_CONFIG_PATH: platformSpecificConfigPath,
CONFIGURE_ARGS: getConfigureArgs(platformConfig, variant),
OVERRIDE_FILE_NAME_VERSION: "",
ADDITIONAL_FILE_NAME_TAG: platformConfig.additionalFileNameTag as String,
Expand Down Expand Up @@ -306,13 +323,14 @@ class Regeneration implements Serializable {
Map<String, ?> params = config.toMap().clone() as Map
params.put("JOB_NAME", jobName)
params.put("JOB_FOLDER", jobFolder)
params.put("SCRIPT_PATH", scriptPath)

params.put("GIT_URI", gitUri)
params.put("GIT_BRANCH", gitBranch)

params.put("BUILD_CONFIG", config.toJson())

def create = context.jobDsl targets: "pipelines/build/common/create_job_from_template.groovy", ignoreExisting: false, additionalParameters: params
def create = context.jobDsl targets: jobTemplatePath, ignoreExisting: false, additionalParameters: params

return create
}
Expand Down Expand Up @@ -519,13 +537,17 @@ return {
String jobRootDir,
String gitUri,
String gitBranch,
String jobTemplatePath,
String scriptPath,
String jenkinsBuildRoot,
String jenkinsUsername,
String jenkinsToken
->
if (jobRootDir == null) jobRootDir = "build-scripts";
if (gitUri == null) gitUri = "https://github.com/AdoptOpenJDK/openjdk-build.git";
if (gitBranch == null) gitBranch = "master";
if (jobTemplatePath == null) jobTemplatePath = "pipelines/build/common/create_job_from_template.groovy";
if (scriptPath == null) scriptPath = "pipelines/build/common/kick_off_build.groovy"
if (jenkinsBuildRoot == null) jenkinsBuildRoot = "https://ci.adoptopenjdk.net/job/build-scripts/";
if (jenkinsUsername == null) jenkinsUsername = ""
if (jenkinsToken == null) jenkinsToken = ""
Expand All @@ -545,6 +567,8 @@ return {
jobRootDir,
gitUri,
gitBranch,
jobTemplatePath,
M-Davies marked this conversation as resolved.
Show resolved Hide resolved
scriptPath,
jenkinsBuildRoot,
jenkinsUsername,
jenkinsToken
Expand Down
3 changes: 2 additions & 1 deletion pipelines/build/common/create_job_from_template.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pipelineJob("$buildFolder/$JOB_NAME") {
}
}
}
scriptPath('pipelines/build/common/kick_off_build.groovy')
scriptPath("${SCRIPT_PATH}")
}
}
properties {
Expand Down Expand Up @@ -74,6 +74,7 @@ pipelineJob("$buildFolder/$JOB_NAME") {
<dt><strong>CODEBUILD</strong></dt><dd>Use a dynamic codebuild machine if no other machine is available</dd>
<dt><strong>DOCKER_IMAGE</strong></dt><dd>Use a docker build environment</dd>
<dt><strong>DOCKER_FILE</strong></dt><dd>Relative path to a dockerfile to be built and used on top of the DOCKER_IMAGE</dd>
<dt><strong>PLATFORM_CONFIG_PATH</strong></dt><dd>Relative path to the platform specific configuration for this paticular OS</dd>
<dt><strong>CONFIGURE_ARGS</strong></dt><dd>Arguments for ./configure</dd>
<dt><strong>OVERRIDE_FILE_NAME_VERSION</strong></dt><dd>Set the version string on the file name</dd>
<dt><strong>RELEASE</strong></dt><dd>Is this build a release</dd>
Expand Down
19 changes: 16 additions & 3 deletions pipelines/build/openjdk10_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ def buildConfigurations = null
node ("master") {
scmVars = checkout scm
load "${WORKSPACE}/pipelines/build/common/import_lib.groovy"
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"

// Load baseFilePath. This is where build_base_file.groovy is located. It runs the downstream job setup and configuration retrieval services.
if ("$baseFilePath" != "") {
configureBuild = load "${WORKSPACE}/${baseFilePath}"
} else {
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
}

// Load buildConfigFilePath. This is where jdkxx_pipeline_config.groovy is located. It contains the build configurations for each platform, architecture and variant.
if ("$buildConfigFilePath" != "") {
buildConfigurations = load "${WORKSPACE}/${buildConfigFilePath}"
} else {
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"
}

}

if (scmVars != null && configureBuild != null && buildConfigurations != null) {
if (scmVars != null && (configureBuild != null || buildConfigurations != null)) {
configureBuild(
javaToBuild,
buildConfigurations,
Expand Down
19 changes: 16 additions & 3 deletions pipelines/build/openjdk11_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ def buildConfigurations = null
node ("master") {
scmVars = checkout scm
load "${WORKSPACE}/pipelines/build/common/import_lib.groovy"
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"

// Load baseFilePath. This is where build_base_file.groovy is located. It runs the downstream job setup and configuration retrieval services.
if ("$baseFilePath" != "") {
configureBuild = load "${WORKSPACE}/${baseFilePath}"
} else {
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
}

// Load buildConfigFilePath. This is where jdkxx_pipeline_config.groovy is located. It contains the build configurations for each platform, architecture and variant.
if ("$buildConfigFilePath" != "") {
buildConfigurations = load "${WORKSPACE}/${buildConfigFilePath}"
} else {
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"
}

}

if (scmVars != null && configureBuild != null && buildConfigurations != null) {
if (scmVars != null && (configureBuild != null || buildConfigurations != null)) {
configureBuild(
javaToBuild,
buildConfigurations,
Expand Down
19 changes: 16 additions & 3 deletions pipelines/build/openjdk12_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ def buildConfigurations = null
node ("master") {
scmVars = checkout scm
load "${WORKSPACE}/pipelines/build/common/import_lib.groovy"
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"

// Load baseFilePath. This is where build_base_file.groovy is located. It runs the downstream job setup and configuration retrieval services.
if ("$baseFilePath" != "") {
configureBuild = load "${WORKSPACE}/${baseFilePath}"
} else {
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
}

// Load buildConfigFilePath. This is where jdkxx_pipeline_config.groovy is located. It contains the build configurations for each platform, architecture and variant.
if ("$buildConfigFilePath" != "") {
buildConfigurations = load "${WORKSPACE}/${buildConfigFilePath}"
} else {
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"
}

}

if (scmVars != null && configureBuild != null && buildConfigurations != null) {
if (scmVars != null && (configureBuild != null || buildConfigurations != null)) {
configureBuild(
javaToBuild,
buildConfigurations,
Expand Down
19 changes: 16 additions & 3 deletions pipelines/build/openjdk13_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ def buildConfigurations = null
node ("master") {
scmVars = checkout scm
load "${WORKSPACE}/pipelines/build/common/import_lib.groovy"
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"

// Load baseFilePath. This is where build_base_file.groovy is located. It runs the downstream job setup and configuration retrieval services.
if ("$baseFilePath" != "") {
configureBuild = load "${WORKSPACE}/${baseFilePath}"
} else {
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
}

// Load buildConfigFilePath. This is where jdkxx_pipeline_config.groovy is located. It contains the build configurations for each platform, architecture and variant.
if ("$buildConfigFilePath" != "") {
buildConfigurations = load "${WORKSPACE}/${buildConfigFilePath}"
} else {
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"
}

}

if (scmVars != null && configureBuild != null && buildConfigurations != null) {
if (scmVars != null && (configureBuild != null || buildConfigurations != null)) {
configureBuild(
javaToBuild,
buildConfigurations,
Expand Down
19 changes: 16 additions & 3 deletions pipelines/build/openjdk14_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ def buildConfigurations = null
node ("master") {
scmVars = checkout scm
load "${WORKSPACE}/pipelines/build/common/import_lib.groovy"
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"

// Load baseFilePath. This is where build_base_file.groovy is located. It runs the downstream job setup and configuration retrieval services.
if ("$baseFilePath" != "") {
configureBuild = load "${WORKSPACE}/${baseFilePath}"
} else {
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
}

// Load buildConfigFilePath. This is where jdkxx_pipeline_config.groovy is located. It contains the build configurations for each platform, architecture and variant.
if ("$buildConfigFilePath" != "") {
buildConfigurations = load "${WORKSPACE}/${buildConfigFilePath}"
} else {
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"
}

}

if (scmVars != null && configureBuild != null && buildConfigurations != null) {
if (scmVars != null && (configureBuild != null || buildConfigurations != null)) {
configureBuild(
javaToBuild,
buildConfigurations,
Expand Down
21 changes: 17 additions & 4 deletions pipelines/build/openjdk15_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ def buildConfigurations = null
node ("master") {
scmVars = checkout scm
load "${WORKSPACE}/pipelines/build/common/import_lib.groovy"
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"

// Load baseFilePath. This is where build_base_file.groovy is located. It runs the downstream job setup and configuration retrieval services.
if ("$baseFilePath" != "") {
configureBuild = load "${WORKSPACE}/${baseFilePath}"
} else {
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
}

// Load buildConfigFilePath. This is where jdkxx_pipeline_config.groovy is located. It contains the build configurations for each platform, architecture and variant.
if ("$buildConfigFilePath" != "") {
buildConfigurations = load "${WORKSPACE}/${buildConfigFilePath}"
} else {
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"
}

}

if (scmVars != null && configureBuild != null && buildConfigurations != null) {
if (scmVars != null && (configureBuild != null || buildConfigurations != null)) {
configureBuild(
javaToBuild,
buildConfigurations,
Expand All @@ -49,4 +62,4 @@ if (scmVars != null && configureBuild != null && buildConfigurations != null) {
} else {
println "[ERROR] One or more setup parameters are null.\nscmVars = ${scmVars}\nconfigureBuild = ${configureBuild}\nbuildConfigurations = ${buildConfigurations}"
throw new Exception()
}
}
19 changes: 16 additions & 3 deletions pipelines/build/openjdk16_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ def buildConfigurations = null
node ("master") {
scmVars = checkout scm
load "${WORKSPACE}/pipelines/build/common/import_lib.groovy"
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/jdk16_pipeline_config.groovy"

// Load baseFilePath. This is where build_base_file.groovy is located. It runs the downstream job setup and configuration retrieval services.
if ("$baseFilePath" != "") {
configureBuild = load "${WORKSPACE}/${baseFilePath}"
} else {
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
}

// Load buildConfigFilePath. This is where jdkxx_pipeline_config.groovy is located. It contains the build configurations for each platform, architecture and variant.
if ("$buildConfigFilePath" != "") {
buildConfigurations = load "${WORKSPACE}/${buildConfigFilePath}"
} else {
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/jdk16_pipeline_config.groovy"
}

}

if (scmVars != null && configureBuild != null && buildConfigurations != null) {
if (scmVars != null && (configureBuild != null || buildConfigurations != null)) {
configureBuild(
javaToBuild,
buildConfigurations,
Expand Down
19 changes: 16 additions & 3 deletions pipelines/build/openjdk8_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ def buildConfigurations = null
node ("master") {
scmVars = checkout scm
load "${WORKSPACE}/pipelines/build/common/import_lib.groovy"
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"

// Load baseFilePath. This is where build_base_file.groovy is located. It runs the downstream job setup and configuration retrieval services.
if ("$baseFilePath" != "") {
configureBuild = load "${WORKSPACE}/${baseFilePath}"
} else {
configureBuild = load "${WORKSPACE}/pipelines/build/common/build_base_file.groovy"
}

// Load buildConfigFilePath. This is where jdkxx_pipeline_config.groovy is located. It contains the build configurations for each platform, architecture and variant.
if ("$buildConfigFilePath" != "") {
buildConfigurations = load "${WORKSPACE}/${buildConfigFilePath}"
} else {
buildConfigurations = load "${WORKSPACE}/pipelines/jobs/configurations/${javaToBuild}_pipeline_config.groovy"
}

}

if (scmVars != null && configureBuild != null && buildConfigurations != null) {
if (scmVars != null && (configureBuild != null || buildConfigurations != null)) {
configureBuild(
javaToBuild,
buildConfigurations,
Expand Down
Loading