aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2019-02-18 15:44:58 -0500
committerMatt Rendina <mrendina@stsci.edu>2019-02-18 15:44:58 -0500
commit9d0d94f3442ec165724e815bfcd5180d7f2162f6 (patch)
treec4dd9bca4210d672c250c15c17f848138e36a9ae
parentbe2d74313adf7056c129406a5c47600fe8bfc1db (diff)
downloaddelivery_control-9d0d94f3442ec165724e815bfcd5180d7f2162f6.tar.gz
Compose pkg_name before using.
-rw-r--r--deliver.groovy2
1 files changed, 1 insertions, 1 deletions
diff --git a/deliver.groovy b/deliver.groovy
index 1a1ab97..6005642 100644
--- a/deliver.groovy
+++ b/deliver.groovy
@@ -93,6 +93,7 @@ def gen_specfiles(label, run_tests) {
def env_name = sh(script: "ls hstdp*", returnStdout: true).trim()[0..-5]
println("env_name: ${env_name}")
for (pkg in pkg_list.tokenize()) {
+ pkg_name = pkg.tokenize('=')[0]
jenkinsfile = "${WORKDIR}/${pkg_name}/JenkinsfileRT"
if (!(fileExists(jenkinsfile))) {
continue
@@ -100,7 +101,6 @@ def gen_specfiles(label, run_tests) {
println("Found JenkinsfileRT not found for ${pkg_name}, installing and running tests.")
} //end if(!(fileExists(jenkinsfile)))
println("Extracting metadata for ${pkg}...")
- pkg_name = pkg.tokenize('=')[0]
println("pkg_name: ${pkg_name}")
pkg_version = pkg.tokenize('=')[1]
ccmd = "${conda_exe} list -n ${env_name} | grep ${pkg_name} | grep dev"