From 076de3070eefec37c4d1110059becdc3cd0befba Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Thu, 13 Dec 2018 14:55:34 -0500 Subject: Accommodate new conda index tool. --- jenkins/dispatch.groovy | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy index 558ef05..cdc5f2c 100644 --- a/jenkins/dispatch.groovy +++ b/jenkins/dispatch.groovy @@ -368,8 +368,18 @@ node(LABEL) { } if (tries_remaining != 0) { sh(script: "touch ${lockfile}") + def index_cmd = "conda index" + def version_vals = [] + CONDA_BUILD_VERSION.tokenize('.').each { value -> version_vals.add(value.toInteger()) } + // Conda build 3.15.1 introduces new index command options and behavior. + if (version_vals[1] >= 15) { + index_cmd = "${index_cmd} -t 4 --no-progress --subdir ${this.CONDA_PLATFORM} ${this.manifest.publication_root}" + } else { + index_cmd = "${index_cmd} ${publication_path}" + } + // Update index of conda channel platform directory. dir(this.conda_build_output_dir) { - sh(script: "conda index ${publication_path}") + sh(script: "time ${index_cmd}") } sh(script: "rm -f ${lockfile}") } -- cgit