diff options
author | Matt Rendina <mrendina@stsci.edu> | 2017-08-16 14:46:30 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2017-08-16 14:46:30 -0400 |
commit | bea2ded97ab5def6a9d485a8b44193339231dfcc (patch) | |
tree | 79691b11550b3fb46feb30d44b0c07dc91a5b92b /jenkins/job-suite-generator.groovy | |
parent | 75651d3748df93ddc7feb70dfae92850e49fcc0f (diff) | |
download | build_control-bea2ded97ab5def6a9d485a8b44193339231dfcc.tar.gz |
Pull publication root from manifest instead of params
Diffstat (limited to 'jenkins/job-suite-generator.groovy')
-rw-r--r-- | jenkins/job-suite-generator.groovy | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/jenkins/job-suite-generator.groovy b/jenkins/job-suite-generator.groovy index 5d32e51..89b65ad 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" @@ -59,6 +60,7 @@ node("master") { "conda_build_version: ${this.conda_build_version}\n" + "conda_base_URL: ${this.conda_base_URL}\n" + "utils_repo: ${this.utils_repo}\n" + + "publication_root: ${this.publication_root}\n" + "old_jobs_action: ${this.old_jobs_action}\n" + " Other values:\n" + "dsl_script: ${this.dsl_script}") @@ -68,7 +70,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 +79,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"), |