aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2017-08-25 15:58:32 -0400
committerMatt Rendina <mrendina@stsci.edu>2017-08-25 15:58:32 -0400
commit05731cc9b0a9b1f755aaf480b153a3a0111460b4 (patch)
treef985c4e1044e3c71d095a78029599d3815ddff9c
parent987078ddafe27cee68a06d885a4f06a7b9f305c3 (diff)
downloadbuild_control-05731cc9b0a9b1f755aaf480b153a3a0111460b4.tar.gz
Test labels list
-rw-r--r--jenkins/generator_DSL.groovy8
-rw-r--r--jenkins/job-suite-generator.groovy1
2 files changed, 9 insertions, 0 deletions
diff --git a/jenkins/generator_DSL.groovy b/jenkins/generator_DSL.groovy
index f74275c..31b6022 100644
--- a/jenkins/generator_DSL.groovy
+++ b/jenkins/generator_DSL.groovy
@@ -27,6 +27,13 @@ this.build_control_repo = this.build_control_repo.trim()
this.build_control_branch = readFileFromWorkspace("VAR-build_control_branch")
this.build_control_branch= this.build_control_branch.trim()
+
+println("**LABELS:")
+for (label in labels) {
+ println("${label}")
+}
+
+
pipelineJob("${suite_name}/_${script.tokenize(".")[0]}") {
// At trigger-time, allow for setting manifest culling behavior.
parameters {
@@ -40,6 +47,7 @@ pipelineJob("${suite_name}/_${script.tokenize(".")[0]}") {
"script: ${this.script}\n" +
"MANIFEST_FILE: ${manifest_file}\n" +
"LABEL: ${label}\n" +
+ "LABELS: ${labels}\n" +
"PY_VERSION: ${py_version}\n" +
"BUILD_CONTROL_REPO: ${build_control_repo}\n" +
"BUILD_CONTROL_BRANCH: ${build_control_branch}\n" +
diff --git a/jenkins/job-suite-generator.groovy b/jenkins/job-suite-generator.groovy
index 1501b69..19203b7 100644
--- a/jenkins/job-suite-generator.groovy
+++ b/jenkins/job-suite-generator.groovy
@@ -60,6 +60,7 @@ node("master") {
" Parameters:\n" +
"manifest_file: ${this.manifest_file}\n" +
"label: ${this.label}\n" +
+ "labels: ${this.labels}\n" +
"py_version: ${this.py_version}\n" +
"conda_version: ${this.conda_version}\n" +
"conda_build_version: ${this.conda_build_version}\n" +