Begin pipeline with cleanup.

This commit is contained in:
Robert Jacob 2017-07-08 22:43:26 +02:00
parent 439bdd51e5
commit 104fd548ee
1 changed files with 12 additions and 1 deletions

13
Jenkinsfile vendored
View File

@ -1,6 +1,18 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Cleanup') {
steps {
deleteDir()
}
}
stage('Checkout build') {
steps {
checkout scm
}
}
stage('Checkout sources') { stage('Checkout sources') {
steps { steps {
checkout([ checkout([
@ -39,7 +51,6 @@ pipeline {
} }
} }
stage('Apply patches') { stage('Apply patches') {
steps { steps {
dir("source") { dir("source") {