diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2019-06-17 15:27:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 15:27:00 -0400 |
commit | ea6e3635c2899d61c82560c99579529d37ee2f38 (patch) | |
tree | bca55ee47501bd20e7bbafd7ac9c0409586087ba | |
parent | 66ffa7ae510d6100a5019333a5e32b7334e6c7a0 (diff) | |
download | jscu_refactor-ea6e3635c2899d61c82560c99579529d37ee2f38.tar.gz |
Try dotglob mv to get all files (#53)
cleanup
-rw-r--r-- | Jenkinsfile | 2 | ||||
-rw-r--r-- | vars/utils.groovy | 24 |
2 files changed, 14 insertions, 12 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index fe98182..df5255b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -//@Library('utils@clonedir') _ +//@Library('utils@subdir') _ // [skip ci] and [ci skip] have no effect here. diff --git a/vars/utils.groovy b/vars/utils.groovy index 1975afe..2232325 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -56,7 +56,7 @@ def scm_checkout(args = ['skip_disable':false]) { // files into it. Then continue as usual. checkout(scm) sh "mkdir clone" - stat = sh(script: "mv * clone", returnStatus: true) + stat = sh(script: "shopt -s dotglob; mv * clone", returnStatus: true) println("args['skip_disable'] = ${args['skip_disable']}") if (args['skip_disable'] == false) { // Obtain the last commit message and examine it for skip directives. @@ -296,18 +296,20 @@ def publishCondaEnv(jobconfig, test_info) { if (jobconfig.enable_env_publication) { // Extract repo from standardized location - def testconf = readFile("setup.cfg") - def Properties prop = new Properties() - prop.load(new StringReader(testconf)) - println("PROP->${prop.getProperty('results_root')}") - pub_repo = prop.getProperty('results_root') - - if (jobconfig.publish_env_on_success_only) { - if (!test_info.problems) { + dir('clone') { + def testconf = readFile("setup.cfg") + def Properties prop = new Properties() + prop.load(new StringReader(testconf)) + println("PROP->${prop.getProperty('results_root')}") + pub_repo = prop.getProperty('results_root') + + if (jobconfig.publish_env_on_success_only) { + if (!test_info.problems) { + pushToArtifactory("conda_env_dump_*", pub_repo) + } + } else { pushToArtifactory("conda_env_dump_*", pub_repo) } - } else { - pushToArtifactory("conda_env_dump_*", pub_repo) } } } |