Skip to content
Permalink
Browse files

Change out cleanup on error.

  • Loading branch information
Mason Packard
Mason Packard committed Sep 14, 2016
1 parent de7c98f commit eb373828b6bd15da674708f2cc7f8501b0d0e962
Showing with 2 additions and 4 deletions.
  1. +2 −4 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'
}

0 comments on commit eb37382

Please sign in to comment.
You can’t perform that action at this time.