diff options
author | Matt Rendina <mrendina@stsci.edu> | 2017-10-25 15:36:16 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2017-10-25 15:36:16 -0400 |
commit | 735e867d024c718a287f80fb783421983f324ee6 (patch) | |
tree | f85be2624deaaa03de1b179545486739d1e7abce | |
parent | edd4884f81c8f5672259c09e43a0d29727cb0136 (diff) | |
download | build_control-735e867d024c718a287f80fb783421983f324ee6.tar.gz |
Clean workspace before creating subdirectory
-rw-r--r-- | jenkins/dispatch.groovy | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy index 71758ab..b537f7c 100644 --- a/jenkins/dispatch.groovy +++ b/jenkins/dispatch.groovy @@ -35,6 +35,10 @@ this.version_pins_file = "version_pins.yml" node(LABEL) { + // Delete any existing job workspace directory contents. + // The directory deleted is the one named after the jenkins pipeline job. + deleteDir() + this.OSname = null def uname = sh(script: "uname", returnStdout: true).trim() if (uname == "Darwin") { @@ -68,10 +72,6 @@ node(LABEL) { sh "env | sort" - // Delete any existing job workspace directory contents. - // The directory deleted is the one named after the jenkins pipeline job. - deleteDir() - // Get the manifest and build control files git branch: BUILD_CONTROL_BRANCH, url: BUILD_CONTROL_REPO // If a tag was specified in the job-suite-generator configuration, |