aboutsummaryrefslogtreecommitdiff
path: root/jenkins/dispatch.groovy
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2020-04-16 18:17:14 -0400
committerMatt Rendina <mrendina@stsci.edu>2020-04-16 18:17:14 -0400
commit46f527f61403b2eeff797b362aab0570e5987f0a (patch)
tree63d0906aa2e877374d7976839609f32e3286817d /jenkins/dispatch.groovy
parentd95b0ae843d4bd75d59590af87be86d31fd5e40f (diff)
downloadbuild_control-46f527f61403b2eeff797b362aab0570e5987f0a.tar.gz
Run index again on one linux dispatch job only.index_experiment
Diffstat (limited to 'jenkins/dispatch.groovy')
-rw-r--r--jenkins/dispatch.groovy12
1 files 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.