diff options
| author | Matt Rendina <mrendina@stsci.edu> | 2017-11-27 16:03:55 -0500 |
|---|---|---|
| committer | Matt Rendina <mrendina@stsci.edu> | 2017-11-27 16:03:55 -0500 |
| commit | aa2d12aa639dd1ffdf4d777b37ad0e90c337d434 (patch) | |
| tree | 4f5baffec213dd5a37a0a66aa30a817d1fa82793 /vars/utils.groovy | |
| parent | 5645a735d75d96307843fe05a1bef9d526cbf376 (diff) | |
| download | jscu_refactor-aa2d12aa639dd1ffdf4d777b37ad0e90c337d434.tar.gz | |
Test steps within loop
Diffstat (limited to 'vars/utils.groovy')
| -rw-r--r-- | vars/utils.groovy | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index d56bf8a..bd84007 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -33,5 +33,16 @@ def concurrent2(configs) { def tasks = [:] for (config in configs) { println("concurrent2: build.nodetype = ${config.nodetype}") - } -} + tasks["${config.nodetype}/${config.build_mode}"] = { + node(config.nodetype) { + withEnv(config.env_vars) { + def prefix = pwd() + "/_install" + stage("Build (${config.build_mode})") { + unstash "source_tree" + sh "ls -al" + } //end stage + } //end withEnv + } // end node + } + } //end for +} //end concurrent2 |
