aboutsummaryrefslogtreecommitdiff
path: root/jenkins/job-suite-generator.groovy
diff options
context:
space:
mode:
authorMatt Rendina <rendinam@users.noreply.github.com>2017-08-16 15:48:57 -0400
committerGitHub <noreply@github.com>2017-08-16 15:48:57 -0400
commit9885e87a3e6a6e83cf02882354be649b3a9a7ba8 (patch)
tree13ff0fa6e71ba0779e0e00c1fecb222b5aef38f7 /jenkins/job-suite-generator.groovy
parent75651d3748df93ddc7feb70dfae92850e49fcc0f (diff)
parent9660524758b9c0b22df6353a477d6b99a1664577 (diff)
downloadbuild_control-9885e87a3e6a6e83cf02882354be649b3a9a7ba8.tar.gz
Merge pull request #24 from rendinam/param_consolidate
Param consolidate
Diffstat (limited to 'jenkins/job-suite-generator.groovy')
-rw-r--r--jenkins/job-suite-generator.groovy7
1 files changed, 4 insertions, 3 deletions
diff --git a/jenkins/job-suite-generator.groovy b/jenkins/job-suite-generator.groovy
index 5d32e51..4d9b30d 100644
--- a/jenkins/job-suite-generator.groovy
+++ b/jenkins/job-suite-generator.groovy
@@ -8,7 +8,7 @@
this.ldir = "libs"
// URL for the YAML support library used for accessing manifest files
-yURL = "https://repo1.maven.org/maven2/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar"
+yaml_lib_url = "https://repo1.maven.org/maven2/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar"
// DSL script path within the repository obtained for this job.
this.dsl_script = "jenkins/generator_DSL.groovy"
@@ -38,6 +38,7 @@ node("master") {
// Get branch spec component after last '/' character.
// Branch names themselves shall not have slashes in them
// when specified in the job-suite-generator job configuration.
+ // This may also describe a tag, rather than a branch.
build_control_branch = scm.branches[0].toString().tokenize("/")[-1]
sh "echo ${build_control_branch} > VAR-build_control_branch"
@@ -68,7 +69,7 @@ node("master") {
sh "mkdir -p ${this.ldir}"
// Obtain libraries to facilitate job generation tasks.
dir ("libs") {
- sh "curl -O ${yURL}"
+ sh "curl -O ${yaml_lib_url}"
}
// Copy files from the implicit checkout of the build_control directory
// (handled by the job that reads this pipeline script) into the actual
@@ -77,7 +78,7 @@ node("master") {
sh "cp -r ${env.WORKSPACE}@script/* ."
}
- stage("Spawn job definitions") {
+ stage("Spawn job definition") {
jobDsl targets: [this.dsl_script].join("\n"),
lookupStrategy: "SEED_JOB",
additionalClasspath: ["${this.ldir}/*.jar"].join("\n"),