Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Help ensure cleanup on errors.
Mason Packard committed Sep 14, 2016
1 parent 0956c4b commit bde6559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
@@ -75,11 +75,11 @@ 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}")
handleError("BUILD ERROR: There was a problem with ${project} Appliance. ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL} |Open>) \n\n ${err}", ${project})
}
}

def handleError(String message){
def handleError(String message, string project){
echo "${message}"
currentBuild.setResult("FAILED")
slackSend color: 'danger', message: "${message}"

0 comments on commit bde6559

Please sign in to comment.