Skip to content

Commit

Permalink
Add cleanup stage before running builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Packard committed Aug 22, 2016
1 parent 1f7c64a commit 0ebbbaa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ if (BRANCH_TEST=="shibboleth-production"){
currentBuild.result = "SUCCESS"

try {
stage 'Cleanup'
sh 'rm -rf output-*'
sh 'rm -rf /home/centos/VirtualBox\ VMs/shibboleth-appliance-centos7-*/'

stage 'Checkout'

checkout scm
Expand Down Expand Up @@ -45,6 +49,10 @@ if (BRANCH_TEST=="shibboleth-production"){
currentBuild.result = "SUCCESS"

try {
stage 'Cleanup'
sh 'rm -rf output-*'
sh 'rm -rf /home/centos/VirtualBox\ VMs/shibboleth-appliance-centos7-*/'

stage 'Checkout'

checkout scm
Expand Down

0 comments on commit 0ebbbaa

Please sign in to comment.