From 46f527f61403b2eeff797b362aab0570e5987f0a Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Thu, 16 Apr 2020 18:17:14 -0400 Subject: Run index again on one linux dispatch job only. --- jenkins/dispatch.groovy | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy index 62a7de5..68dfcae 100644 --- a/jenkins/dispatch.groovy +++ b/jenkins/dispatch.groovy @@ -358,11 +358,13 @@ node(LABEL) { sh(script: "${rsync_cmd} ${this.conda_build_output_dir}/*.tar.bz2 ${publication_path}") // Test a single index per OS. Avoid collision mitigation for now. - //if ("${PY_VERSION}" == "3.7" && this.CONDA_PLATFORM == "linux-64") { - // def index_cmd = "conda index" - // index_cmd = "${index_cmd} -t 4 --no-progress --subdir ${this.CONDA_PLATFORM} ${this.manifest.publication_root}" - // sh(script: "time ${index_cmd}") - //} + if ("${PY_VERSION}" == "3.7" && this.CONDA_PLATFORM == "linux-64") { + def index_cmd = "conda index" + sh(script: "date") + sh(script: "hostname") + index_cmd = "${index_cmd} -t 4 --no-progress --subdir ${this.CONDA_PLATFORM} ${this.manifest.publication_root}" + sh(script: "time ${index_cmd}") + } // Use a lock file to prevent two dispatch jobs that finish at the same // time from trampling each other's indexing process. -- cgit