Skip to content
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.

Commit

Permalink
cleanWs() in post block
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Nov 30, 2017
1 parent e58debe commit 6593e53
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent none
agent any

triggers {
// every minute
Expand All @@ -24,8 +24,6 @@ pipeline {
sh 'ansible-playbook --version'
sh 'terraform version'

// clean the workspace
deleteDir()
checkout scm
sh 'pwd'
sh 'ls -a'
Expand Down Expand Up @@ -56,4 +54,9 @@ pipeline {
}
}
}
post {
always {
cleanWs()
}
}
}

0 comments on commit 6593e53

Please sign in to comment.