Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
shimonran authored Jan 24, 2018
1 parent 422309e commit 003dcba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ node ('nps-server-14') {
currentBuild.result = "FAILED"
mail to:"[email protected]", subject:"FAILURE: ${currentBuild.fullDisplayName}",
body: " ""FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':\n
Check console output at "<a href="${env.BUILD_URL}" "" "
Check console output at "${env.BUILD_URL}" "" "
throw e
} finally {


mail to:"[email protected]", subject:"FINISH: ${currentBuild.fullDisplayName}",
body: " ""FINISH: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':\n
Check console output at "${env.BUILD_URL}" "" "


if ( currentBuild.getPreviousBuild().getResult().equals("FAILURE") ) {
echo "Build success after fail"
mail to:"[email protected]", subject:"SUCCESS: ${currentBuild.fullDisplayName}", body: "Yay, we returned to success."
Expand Down

0 comments on commit 003dcba

Please sign in to comment.