diff options
author | Matt Rendina <mrendina@stsci.edu> | 2017-08-03 11:02:41 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2017-08-03 11:02:41 -0400 |
commit | 5e1ca1b50d6dda10ac9af4b3f3102e3d62888bf8 (patch) | |
tree | 38f7bc7490d4c66ddd760ac5c3193e61bd7c9217 /jenkins | |
parent | 9fa3d59a0c17adb715ea42c294cd3cee0982bb32 (diff) | |
download | build_control-5e1ca1b50d6dda10ac9af4b3f3102e3d62888bf8.tar.gz |
Different file creation approach
Diffstat (limited to 'jenkins')
-rw-r--r-- | jenkins/dispatch.groovy | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy index c7a263c..05ff914 100644 --- a/jenkins/dispatch.groovy +++ b/jenkins/dispatch.groovy @@ -241,11 +241,13 @@ node(LABEL) { //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. - PrintWriter writer = null - f = new File("${PUBLICATION_PATH}/LOCK-Jenkins") - writer = new PrintWriter(f) - writer.println("Lock file output") - writer.close() + sh(script: "touch ${PUBLICATION_PATH}/LOCK-Jenkins") + //PrintWriter writer = null + //f = new File("${PUBLICATION_PATH}/LOCK-Jenkins") + ////f = new File("${PUBLICATION_PATH}/${this.CONDA_PLATFORM}/LOCK-Jenkins") + //writer = new PrintWriter(f) + //writer.println("Lock file output") + //writer.close() //dir(this.conda_build_output_dir) { // sh(script: "conda index") //} |