diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2019-02-12 09:56:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 09:56:30 -0500 |
commit | 477c44df4495996b196e3566f32eab7b4a7d209d (patch) | |
tree | f9f29ff6d163c7c709ee101e527526e3d4ab2951 | |
parent | 79e549361392144948b44e22d3798c237b06b1af (diff) | |
download | jscu_refactor-477c44df4495996b196e3566f32eab7b4a7d209d.tar.gz |
Generate conda spec file when a conda environment is created. (#33)1.3.3
Trim xml file name output
-rw-r--r-- | vars/utils.groovy | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index aafa001..21d765c 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -263,8 +263,9 @@ def processTestReport(config, index) { // Process the XML results file to include the build config name as a prefix // on each test name to make it more obvious from where each result originates. if (report_exists == 0) { - repfile = sh(script:"find *.xml", returnStdout: true) - sh(script:"cp ${repfile} ${repfile}.modified") + repfile = sh(script:"find *.xml", returnStdout: true).trim() + command = "cp ${repfile} ${repfile}.modified" + sh(script:command) sh(script:"sed -i 's/ name=\"/ name=\"[${config.name}] /g' *.xml.modified") step([$class: 'XUnitBuilder', thresholds: [ @@ -416,6 +417,8 @@ def buildAndTest(config, index) { } // end test test_cmd finally clause } // end if(config.test_cmds...) + // Dump the conda environment definition to a file. + sh(script: "${env.WORKSPACE}/miniconda/bin/conda list --explicit > env_dump_${index}.txt") } // end withEnv } |