From 0956c4b000495db798cf531965e22cbca85bc407 Mon Sep 17 00:00:00 2001 From: Mason Packard Date: Wed, 14 Sep 2016 16:24:34 -0400 Subject: [PATCH] Help ensure cleanup on errors. --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 9cbcfff..8e683d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -84,5 +84,8 @@ def handleError(String message){ currentBuild.setResult("FAILED") slackSend color: 'danger', message: "${message}" //step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'chris.bynum@levvel.io', sendToIndividuals: true]) + + sh "bin/remove-${project}.sh" + sh 'exit 1' }