File tree Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -70,43 +70,20 @@ pipeline {
7070 success {
7171 script {
7272 sendSlackNotification(' SUCCESS' )
73- notifySuccessful()
7473 }
7574 }
7675
7776 failure {
7877 script {
79- if (env. GIT_BRANCH == ' latest' ) {
80- sendSlackNotification(' FAILURE' )
81- notifyFailed()
82- }
78+ sendSlackNotification(' FAILURE' )
8379 }
8480 }
8581 aborted {
8682 script {
87- if (env. BRANCH_NAME == ' latest' ) {
88- sendSlackNotification(' ABORTED' )
89- }
83+ sendSlackNotification(' ABORTED' )
9084 // Get the build log to check for the specific exception and retry job
9185 AgentOfflineException ()
9286 }
9387 }
9488 }
9589}
96-
97- def notifySuccessful () {
98- emailext (
99- subject : " SUCCESSFUL: Job '${ env.JOB_NAME} [${ env.BUILD_NUMBER} ]'" ,
100- body : """ SUCCESSFUL: Job '${ env.JOB_NAME} [${ env.BUILD_NUMBER} ]':
101- Check console output and connection attributes at ${ env.BUILD_URL} """ ,
102- 103- )
104- }
105- def notifyFailed () {
106- emailext (
107- subject : " FAILED: Job '${ env.JOB_NAME} [${ env.BUILD_NUMBER} ]'" ,
108- body : """ FAILED: Job '${ env.JOB_NAME} [${ env.BUILD_NUMBER} ]':
109- Check console output at ${ env.BUILD_URL} """ ,
110- 111- )
112- }
You can’t perform that action at this time.
0 commit comments