Send email notification whenever it is required
Besides nightly job, other jobs may also need to send email
notifications sometime.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I4ac15851b2afee6c4e26b89f5150b0e2dc16a2a5
diff --git a/jenkins/ci.jpl b/jenkins/ci.jpl
index be5639f..7bdf4f8 100644
--- a/jenkins/ci.jpl
+++ b/jenkins/ci.jpl
@@ -303,7 +303,7 @@
def emailNotification(results, stage, failed_jobs) {
script {
- if (env.JOB_NAME.equals("tf-m-nightly") && !env.EMAIL_NOTIFICATION.equals('')) {
+ if (env.EMAIL_NOTIFICATION) {
def result = "Fail."
if (results == true) {
result = "Success."