Clean the workspace before anything gets started

This commit is contained in:
R. Tyler Croy 2016-11-02 06:32:43 -07:00
parent a7c60fb5f1
commit 8f94787e6a
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -9,6 +9,9 @@ def isMultibranch = !!(env.BRANCH_NAME)
String shortCommit = ''
node('docker') {
/* Make sure we're always starting with a fresh workspace */
deleteDir()
stage('Checkout') {
checkout scm
sh 'git rev-parse HEAD > GIT_COMMIT'