Jenkinsfile meldingen betreft builds
This commit is contained in:
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -93,6 +93,29 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
|
success {
|
||||||
|
emailext(
|
||||||
|
subject: "Build Succesvol: ${env.JOB_NAME} #${env.BUILD_NUMBER}",
|
||||||
|
body: """
|
||||||
|
De Jenkins-pipeline '${env.JOB_NAME}' is succesvol uitgevoerd.
|
||||||
|
Buildnummer: ${env.BUILD_NUMBER}
|
||||||
|
Kijk hier voor meer details: ${env.BUILD_URL}
|
||||||
|
""",
|
||||||
|
to: 'vanveenmel11@gmail.com'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
failure {
|
||||||
|
emailext(
|
||||||
|
subject: "Build Mislukt: ${env.JOB_NAME} #${env.BUILD_NUMBER}",
|
||||||
|
body: """
|
||||||
|
De Jenkins-pipeline '${env.JOB_NAME}' is helaas mislukt.
|
||||||
|
Buildnummer: ${env.BUILD_NUMBER}
|
||||||
|
Kijk hier voor meer details: ${env.BUILD_URL}
|
||||||
|
""",
|
||||||
|
to: 'vanveenmel11@gmail.com'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
always {
|
always {
|
||||||
script {
|
script {
|
||||||
echo "Pipeline execution completed."
|
echo "Pipeline execution completed."
|
||||||
|
|||||||
Reference in New Issue
Block a user