3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-02 03:15:33 +02:00

[jenkins] Add email alerts on failure

This commit is contained in:
Dylan Simon 2018-02-22 17:48:32 -05:00
parent 0a84f48e43
commit 1a4f161ea4

27
Jenkinsfile vendored
View File

@ -83,4 +83,31 @@ for (int i = 0; i < osxPlatforms.size(); i++) {
} }
}
try {
parallel platforms
} catch (err) {
emailext(
subject: "\$PROJECT_NAME - Build # \$BUILD_NUMBER - FAILED",
body: """\$PROJECT_NAME - Build # \$BUILD_NUMBER - FAILED
$err
Check console output at \$BUILD_URL to view full results.
Building \$BRANCH_NAME for \$CAUSE
\$JOB_DESCRIPTION
Chages:
\$CHANGES
End of build log:
\${BUILD_LOG,maxLines=60}
""",
to: 'mzingl@flatironinstitute.org, hstrand@flatironinstitute.org, nils.wentzell@gmail.com, dsimon@flatironinstitute.org',
recipientProviders: [
[$class: 'DevelopersRecipientProvider'],
],
replyTo: '$DEFAULT_REPLYTO'
)
throw err
}