Skip to content

Commit

Permalink
Merge pull request #100 from karun-singh/jenkins-notif
Browse files Browse the repository at this point in the history
Jenkins CI: Add failure email notification.
  • Loading branch information
karun-singh authored May 26, 2023
2 parents 0ceadad + ef1b9e8 commit 9bab3fe
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 9bab3fe

Please sign in to comment.