diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2018-01-12 10:19:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 10:19:56 -0500 |
commit | 2a12e683a0742d5624f8280f89758ccf03dea129 (patch) | |
tree | 49cc3545e91acc586bb3ed00de60837c1b9e8075 /jenkins/dispatch.groovy | |
parent | a3ffcc4338d57d70b333afce507b53a916cf6c12 (diff) | |
download | build_control-2a12e683a0742d5624f8280f89758ccf03dea129.tar.gz |
Manifest data propagation correction (#52)
* Adjust propagation of manifest data
* Test propagation of manifest data
Diffstat (limited to 'jenkins/dispatch.groovy')
-rw-r--r-- | jenkins/dispatch.groovy | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy index e02b0cc..fa293a6 100644 --- a/jenkins/dispatch.groovy +++ b/jenkins/dispatch.groovy @@ -1,6 +1,7 @@ // Parameters inherited from the calling script via environment injection. //---------------------------------------------------------------------------- // MANIFEST_FILE - The "release" type; list of recipes/packages to build +// MANIFEST_DATA - Content of manifest file used in creating this job. // LABEL - Node or logical group of build nodes // PY_VERSION - Python version hosted by conda to support the build // NUMPY_VERSION - numpy version used to support the build @@ -97,10 +98,11 @@ node(LABEL) { sh(script: "git checkout tags/${BUILD_CONTROL_TAG}") } - this.manifest = readYaml file: "manifests/${MANIFEST_FILE}" - if (this.manifest.channel_URL[-1..-1] == "/") { - this.manifest.channel_URL = this.manifest.channel_URL[0..-2] - } + // Turn multi-line env var delimiters into simple newlines for + // correct parsing by readYaml. + manifest_data = MANIFEST_DATA.replaceAll(" \\\\n", "\n") + println("\nmanifest_data:\n${manifest_data}") + this.manifest = readYaml text: manifest_data this.pins_file = readYaml file: "jenkins/${this.version_pins_file}" |