[CI] fix the email generation
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -27,6 +27,9 @@ def nodeExecutor = params.nodeExecutor
|
|||||||
def doMandatoryTests = false
|
def doMandatoryTests = false
|
||||||
def doFullTestsuite = false
|
def doFullTestsuite = false
|
||||||
|
|
||||||
|
//
|
||||||
|
def gitCommitAuthorEmailAddr
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
label nodeExecutor
|
label nodeExecutor
|
||||||
@@ -158,15 +161,15 @@ pipeline {
|
|||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
script {
|
script {
|
||||||
|
def eSubject = JOB_NAME + ' - Build # ' + BUILD_ID + ' - ' + currentBuild.result + '!'
|
||||||
|
def eBody = "Hi,\n\n"
|
||||||
|
eBody += "Here are attached HTML report files for " + JOB_NAME + " - Build # " + BUILD_ID + " - " + currentBuild.result + "!\n\n"
|
||||||
|
eBody += "Regards,\n"
|
||||||
|
eBody += "OAI CI Team"
|
||||||
emailext attachmentsPattern: '*results*.html',
|
emailext attachmentsPattern: '*results*.html',
|
||||||
body: '''Hi,
|
body: eBody,
|
||||||
|
|
||||||
Here are attached HTML report files for $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!
|
|
||||||
|
|
||||||
Regards,
|
|
||||||
OAI CI Team''',
|
|
||||||
replyTo: 'no-reply@openairinterface.org',
|
replyTo: 'no-reply@openairinterface.org',
|
||||||
subject: '$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!',
|
subject: eSubject,
|
||||||
to: gitCommitAuthorEmailAddr
|
to: gitCommitAuthorEmailAddr
|
||||||
|
|
||||||
if (fileExists('.git/CI_COMMIT_MSG')) {
|
if (fileExists('.git/CI_COMMIT_MSG')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user