From 609e6521b0c598aef1af555d3cd397f4fa341a4d Mon Sep 17 00:00:00 2001 From: Raphael Defosseux Date: Thu, 6 Sep 2018 13:06:28 +0200 Subject: [PATCH] CI: adding email notification Signed-off-by: Raphael Defosseux --- ci-scripts/Jenkinsfile-gitlab | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci-scripts/Jenkinsfile-gitlab b/ci-scripts/Jenkinsfile-gitlab index 061eebe279..9c41e81432 100644 --- a/ci-scripts/Jenkinsfile-gitlab +++ b/ci-scripts/Jenkinsfile-gitlab @@ -285,6 +285,15 @@ pipeline { script { // Stage destroy may not be run if error in previous stage sh "./ci-scripts/destroyAllRunningVM.sh --job-name ${JOB_NAME} --build-id ${BUILD_ID}" + emailext attachmentsPattern: '*results*.html', + body: '''Hi, +Here are attached HTML report files for $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS! + +Regards, +OAI CI Team''', + replyTo: 'no-reply@openairinterface.org', + subject: '$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!', + to: env.gitlabUserEmail } } success {