Skip to content
Snippets Groups Projects
Commit b8346c7b authored by al.schwinn's avatar al.schwinn
Browse files

Mail to Developers on Build failure

parent 09cc079c
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,28 @@ pipeline {
}
}
}
post{
unstable {
emailext(
subject: "Unstable Build: ${env.JOB_NAME} #${env.BUILD_NUMBER}",
body: """
Job: ${env.JOB_NAME}
Build: #${env.BUILD_NUMBER}
Build URL: ${env.BUILD_URL}
""",
to: 'al.schwinn@gsi.de'
)
}
failure {
emailext(
subject: "Build failed after commit ${env.GIT_COMMIT}!",
body: """
Job: ${env.JOB_NAME}
Build: #${env.BUILD_NUMBER}
Build URL: ${env.BUILD_URL}
""",
recipientProviders: [developers()]
)
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment