diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2019-02-26 13:54:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 13:54:51 -0500 |
commit | 93e64011d54e1b305472926e17768e634e560230 (patch) | |
tree | 7c8a9a2531899b623a733feab59c08a23721e597 /vars | |
parent | b024fb08169018fc9f35bb8a765c5f7aff4ea4f0 (diff) | |
download | jscu_refactor-93e64011d54e1b305472926e17768e634e560230.tar.gz |
Allow override of conda version on CI system as well. (#35)1.3.6
Diffstat (limited to 'vars')
-rw-r--r-- | vars/utils.groovy | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index 2683f7f..62dc540 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -459,7 +459,11 @@ def processCondaPkgs(config, index) { } else { conda_exe = sh(script: "which conda", returnStdout: true).trim() println("Found conda exe at ${conda_exe}.") + if (config.conda_ver != null) { + sh(script: "${conda_exe} install conda=${config.conda_ver} -q -y") + } } + sh(script: "${conda_exe} --version") def conda_root = conda_exe.replace("/bin/conda", "").trim() def env_name = "tmp_env${index}" def conda_prefix = "${conda_root}/envs/${env_name}".trim() |