From 0ebbbaa689cad5cdd82945440c0cd85fe5816664 Mon Sep 17 00:00:00 2001 From: Mason Packard Date: Mon, 22 Aug 2016 09:51:34 -0400 Subject: [PATCH] Add cleanup stage before running builds --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 10454aa..7f54111 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 @@ -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