diff options
author | Matt Rendina <mrendina@stsci.edu> | 2017-08-03 13:56:33 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2017-08-03 13:56:33 -0400 |
commit | af12a963ce3c0358b5465b624b9dbb2681c8572b (patch) | |
tree | ff77006e6e296e505c4551ae4996acc1f7642dba /jenkins/dispatch.groovy | |
parent | a2af62db7567b6a27e890c0bc18aa47dab0ec68c (diff) | |
download | build_control-af12a963ce3c0358b5465b624b9dbb2681c8572b.tar.gz |
Compose publication path and run index there
Diffstat (limited to 'jenkins/dispatch.groovy')
-rw-r--r-- | jenkins/dispatch.groovy | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy index a79ad51..8393cd8 100644 --- a/jenkins/dispatch.groovy +++ b/jenkins/dispatch.groovy @@ -239,7 +239,8 @@ node(LABEL) { stage ("Publication") { // Copy packages built during this session to the publication path. - sh(script: "rsync -avzr ${this.conda_build_output_dir}/*.tar.bz2 ${PUBLICATION_PATH}/${this.CONDA_PLATFORM}") + def publication_path = "${PUBLICATION_ROOT}/${this.CONDA_PLATFORM}" + sh(script: "rsync -avzr ${this.conda_build_output_dir}/*.tar.bz2 ${publication_path}") // Use a lock file to prevent two dispatch jobs that finish at the same // time from trampling each other's indexing process. def lockfile = "${this.conda_build_output_dir}/LOCK-Jenkins" @@ -259,7 +260,7 @@ node(LABEL) { if ( tries_remaining != 0 ) { sh(script: "touch ${lockfile}") dir(this.conda_build_output_dir) { - sh(script: "conda index") + sh(script: "conda index ${publication_path}") } sh(script: "rm -f ${lockfile}") } |