Commit 9b2c2867 authored by Dominik Charousset's avatar Dominik Charousset

Generate nicer email notification text

parent 3adb0741
...@@ -183,21 +183,21 @@ pipeline { ...@@ -183,21 +183,21 @@ pipeline {
} }
post { post {
success { success {
echo "Success." emailext(
// TODO: Gitter? subject: "✅ CAF build #${env.BUILD_NUMBER} succeeded for branch ${env.GIT_BRANCH}",
recipientProviders: [culprits(), developers(), requestor(), upstreamDevelopers()],
body: "Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] passed.\n\n" \
+ "Check console output at ${env.BUILD_URL}.",
)
} }
failure { failure {
echo "Failure, sending mails!"
// TODO: Gitter?
emailext( emailext(
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'", subject: "⛔️ CAF build #${env.BUILD_NUMBER} failed for branch ${env.GIT_BRANCH}",
body: """FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]': attachLog: true,
Check console output at "${env.BUILD_URL}" compressLog: true,
Job: ${env.JOB_NAME} recipientProviders: [culprits(), developers(), requestor(), upstreamDevelopers()],
Build number: ${env.BUILD_NUMBER}""", body: "Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] failed!\n\n" \
// TODO: Uncomment the following line: + "Check console output at ${env.BUILD_URL} or see attached log.",
// recipientProviders: [[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']]
to: 'hiesgen;neverlord' // add multiple separated with ';'
) )
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment