Skip to content

Commit

Permalink
add jenkins email notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
karun-singh committed May 25, 2023
1 parent 0ceadad commit ef1b9e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,14 @@ pipeline {
}
}
}
post{
failure{
script{
if (env.GIT_BRANCH == 'origin/master')
emailext recipientProviders: [buildUser(), developers()], to: '$RS_RECIPIENTS, $DEFAULT_RECIPIENTS', subject: '$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!', body: '''$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
Check console output at $BUILD_URL to view the results.'''
}
}
}
}

0 comments on commit ef1b9e8

Please sign in to comment.