From eb373828b6bd15da674708f2cc7f8501b0d0e962 Mon Sep 17 00:00:00 2001 From: Mason Packard Date: Wed, 14 Sep 2016 16:49:10 -0400 Subject: [PATCH] Change out cleanup on error. --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9af2a40..8b6b73d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,17 +75,15 @@ def performBuild(String project){ } catch (err) { - handleError("BUILD ERROR: There was a problem with ${project} Appliance. ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL} |Open>) \n\n ${err}", ${project}) + handleError("BUILD ERROR: There was a problem with ${project} Appliance. ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL} |Open>) \n\n ${err}") } } -def handleError(String message, String project){ +def handleError(String message){ echo "${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' }