Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change out cleanup on error.
Mason Packard committed Sep 14, 2016
1 parent de7c98f commit eb37382
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions 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.