From a739a1f163ce1557cc76d3aee75a76d89e5abe43 Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Mon, 27 Nov 2017 17:54:13 -0500 Subject: Selective test run, more diagnostic output --- vars/utils.groovy | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vars') 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() +} -- cgit