aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Rendina <rendinam@users.noreply.github.com>2017-08-18 14:22:52 -0400
committerGitHub <noreply@github.com>2017-08-18 14:22:52 -0400
commitc1adf1307c59c9f9d23ebb062fff86c7b4b1085a (patch)
tree0ce2c829b8991cfa46058ac7dcc4e4dc1f962622
parentd560830c8c0f38c3fe51dff3000e133a505d075a (diff)
parentdaf3c8bdfbb7045cda355e157e0d782de2264a32 (diff)
downloadbuild_control-c1adf1307c59c9f9d23ebb062fff86c7b4b1085a.tar.gz
Merge pull request #27 from rendinam/rsync_ignore
Ignore existing files when rsyncing packages
-rw-r--r--jenkins/dispatch.groovy3
1 files changed, 2 insertions, 1 deletions
diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy
index 0f5ac79..fcf67d3 100644
--- a/jenkins/dispatch.groovy
+++ b/jenkins/dispatch.groovy
@@ -250,8 +250,9 @@ node(LABEL) {
def artifacts_present =
sh(script: "ls ${this.conda_build_output_dir}/*.tar.bz2 >/dev/null 2>&1",
returnStatus: true)
+ def rsync_cmd = "rsync -avzr --ignore-existing"
if (artifacts_present == 0) {
- sh(script: "rsync -avzr ${this.conda_build_output_dir}/*.tar.bz2 ${publication_path}")
+ sh(script: "${rsync_cmd} ${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 = "${publication_path}/LOCK-Jenkins"