Skip to content

Commit

Permalink
Sent failure/fixed emails from builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
merks committed Apr 10, 2024
1 parent 9b2c831 commit 475fcea
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Jenkinsfile
Expand Up @@ -104,6 +104,30 @@ pipeline {
}

post {
failure {
mail to: 'ed.merks@gmail.com',
subject: "[BIRT CI] Build Failure ${currentBuild.fullDisplayName}",
mimeType: 'text/html',
body: """
Project: ${env.JOB_NAME}<br/>
Build Number: ${env.BUILD_NUMBER}<br/>
Build URL: <a href='${env.BUILD_URL}'>${env.BUILD_URL}</a><br/>
Console: <a href='${env.BUILD_URL}/console'>${env.BUILD_URL}/console</a>
""".trim()
}

fixed {
mail to: 'ed.merks@gmail.com',
subject: "[BIRT CI] Back to normal ${currentBuild.fullDisplayName}",
mimeType: 'text/html',
body: """
Project: ${env.JOB_NAME}<br/>
Build Number: ${env.BUILD_NUMBER}<br/>
Build URL: <a href='${env.BUILD_URL}'>${env.BUILD_URL}</a><br/>
Console: <a href='${env.BUILD_URL}/console'>${env.BUILD_URL}/console</a>
""".trim()
}

always {
junit testResults: '**/target/surefire-reports/TEST-*.xml', allowEmptyResults: true
}
Expand Down

0 comments on commit 475fcea

Please sign in to comment.