Skip to content

Commit

Permalink
add jenkins slack notifications
Browse files Browse the repository at this point in the history
Signed-off-by: lwsanty <[email protected]>
  • Loading branch information
lwsanty committed Oct 23, 2019
1 parent a07e10b commit 06f0345
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,12 @@ pipeline {
}
}
}
post {
success {
slackSend (color: '#2eb886', message: "SUCCESS: `${env.JOB_NAME}` <${env.BUILD_URL}|build #${env.BUILD_NUMBER}>")
}
failure {
slackSend (color: '#b82e60', message: "FAILED: `${env.JOB_NAME}` <${env.BUILD_URL}|build #${env.BUILD_NUMBER}>")
}
}
}

0 comments on commit 06f0345

Please sign in to comment.