aboutsummaryrefslogtreecommitdiff
path: root/vars
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2017-12-01 12:03:39 -0500
committerMatt Rendina <mrendina@stsci.edu>2017-12-01 12:03:39 -0500
commitb8734d897e7e5b0fbc6714f6313f59fe66866ce5 (patch)
treed75046104cc1beea046b167366117fe0dd119ecc /vars
parent814ae0df738ffb0a39f64b73b1b737b3ed1be939 (diff)
downloadjscu_refactor-b8734d897e7e5b0fbc6714f6313f59fe66866ce5.tar.gz
Test map inclusion, simplified
Diffstat (limited to 'vars')
-rw-r--r--vars/utils.groovy6
1 files changed, 3 insertions, 3 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy
index 654ef05..0e2b904 100644
--- a/vars/utils.groovy
+++ b/vars/utils.groovy
@@ -55,14 +55,14 @@ def concurrent(configs) {
for (path in paths) {
println("path in paths: ${path}")
if (path =~ /\$.*:|\$.*/) {
- subvar = path[1..-1]
- // var_exists = sh(script: "[ ! -z ${subvar} ]", returnStatus: true)
+ def subvar = path[1..-1]
+ var_exists = sh(script: "[ ! -z ${subvar} ]", returnStatus: true)
// if (var_exists) {
// println("${subvar} exists in all vars.")
// var_value = sh(script: "echo ${subvar}", returnStdout: true)
// expanded = var.replaceAll(subvar, var_value)
// println("REPLACED SUBVAR: ${expanded}")
- // }
+ // }
}
// def cpath = new File("${env.WORKSPACE}", var.value).getCanonicalPath()
// println("task: cpath = ${cpath}")