This will send email to user when finish selftest.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- lib/email.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/lib/email.sh b/lib/email.sh index 4f1055033..24ef7bb64 100755 --- a/lib/email.sh +++ b/lib/email.sh @@ -80,6 +80,22 @@ Compass-CI " }
+selftest_content() +{ + email_content="To: $my_email +Subject: [NOTIFY Compass-CI] Self-test report + +Dear $my_name: + + Your self-test groud_id=selftest job result is: + + $job_state + +Regards +Compass-CI +" +} + send_email() { local subject=$1