From 735e867d024c718a287f80fb783421983f324ee6 Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Wed, 25 Oct 2017 15:36:16 -0400 Subject: Clean workspace before creating subdirectory --- jenkins/dispatch.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jenkins') 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, -- cgit