diff --git a/Jenkinsfile b/Jenkinsfile
index 63a0cc3f..523cad82 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -295,6 +295,22 @@ pipeline {
║ Tag : ${env.TAG.padRight(23)} ║
╚══════════════════════════════════════════╝
"""
+ emailext(
+ to: 'soufiane.baali99@gmail.com',
+ subject: "✅ Pipeline Backend SUCCÈS - ${env.ENV}",
+ body: """
+
✅ Pipeline Backend terminé avec succès
+
+ | Projet | ${env.JOB_NAME} |
+ | Build | #${env.BUILD_NUMBER} |
+ | Environnement | ${env.ENV} |
+ | Image | ${IMAGE_NAME}:${env.TAG} |
+ | Durée | ${currentBuild.durationString} |
+
+ 🔗 Voir les détails du build
+ """,
+ mimeType: 'text/html'
+ )
}
failure {
echo """
@@ -305,6 +321,22 @@ pipeline {
║ Vérifiez les logs pour plus de détails ║
╚══════════════════════════════════════════╝
"""
+ emailext(
+ to: 'soufiane.baali99@gmail.com',
+ subject: "❌ Pipeline Backend ÉCHEC - ${env.ENV}",
+ body: """
+ ❌ Pipeline Backend a échoué
+
+ | Projet | ${env.JOB_NAME} |
+ | Build | #${env.BUILD_NUMBER} |
+ | Environnement | ${env.ENV} |
+ | Durée | ${currentBuild.durationString} |
+
+ 🔗 Voir les logs du build
+ 🔗 Console Output
+ """,
+ mimeType: 'text/html'
+ )
}
}
}