diff options
| author | Matt Rendina <mrendina@stsci.edu> | 2017-11-27 17:54:13 -0500 |
|---|---|---|
| committer | Matt Rendina <mrendina@stsci.edu> | 2017-11-27 17:54:13 -0500 |
| commit | a739a1f163ce1557cc76d3aee75a76d89e5abe43 (patch) | |
| tree | 5401cebfe9396d5672557e6976da3c653cedf5aa /vars/utils.groovy | |
| parent | cc6fd7e8f040b07f7fbc427d8a24530a05f76306 (diff) | |
| download | jscu_refactor-a739a1f163ce1557cc76d3aee75a76d89e5abe43.tar.gz | |
Selective test run, more diagnostic output
Diffstat (limited to 'vars/utils.groovy')
| -rw-r--r-- | vars/utils.groovy | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index a4bddca..d4a9cac 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -41,11 +41,17 @@ def concurrent2(configs) { tasks["${config.nodetype}/${config.build_mode}"] = { node(config.nodetype) { //withEnv(config.env_vars) { + println("Run tests = ${config.run_tests}") def prefix = pwd() + "/_install" stage("Build (${config.build_mode})") { unstash "source_tree" sh(script: "ls -al") } //end stage + stage("Test (${config.build_mode})") { + if (config.run_tests) { + println("RUNNING TESTS") + } + } //} //end withEnv } // end node } @@ -54,3 +60,8 @@ def concurrent2(configs) { parallel(tasks) } } //end concurrent2 + +// Allow deep copying of a config object to another instance. +def copy(config) { + return config.createNewInstance() +} |
