From b6f6f66329ec485e656850f1bbb8bb7b09a1d087 Mon Sep 17 00:00:00 2001 From: hyokeun Date: Thu, 12 Oct 2017 12:17:00 +0900 Subject: [PATCH] RBS mail title change Change-Id: I34cdb86e379c6f93298579c44f36d0ad07031e54 --- job_create_sdkrootstrap.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/job_create_sdkrootstrap.py b/job_create_sdkrootstrap.py index 784ca96..0b70f54 100755 --- a/job_create_sdkrootstrap.py +++ b/job_create_sdkrootstrap.py @@ -30,9 +30,9 @@ from common.send_mail import prepare_mail # remote jenkins build job import requests -EMAIL_TITLE = "[SDK RBS] has been trigger (%s Build Status : %s)" +EMAIL_TITLE = "[SDK RBS] %s (%s)" -EMAIL_COUNT_MESSAGE = "A SDK RootstrapBuildSystem has been trigger \n\n" \ +EMAIL_COUNT_MESSAGE = "A SDK RootstrapBuildSystem trigger info\n\n" \ "- OBS project : %s \n" \ "- Snapshot url : %s \n" \ "- Basesnapshot url : %s \n" \ @@ -320,7 +320,7 @@ def make_rs_snapshot_private(git_prj, git_cache, mygit, fields, profile, vm_imag if status == 'failed': # Notify email to RBS_MAILINGLIST - title = EMAIL_TITLE % ( profile["project"], status ) + title = EMAIL_TITLE % ( status.upper(), profile["project"] ) msg = EMAIL_COUNT_MESSAGE % (profile["project"], snapshot_url, basesnapshot_url, @@ -437,7 +437,7 @@ def make_rs_snapshot_public(git_prj, git_cache, mygit, fields, profile, vm_image if status == 'failed': # Notify email to RBS_MAILINGLIST - title = EMAIL_TITLE % ( profile["project"], status ) + title = EMAIL_TITLE % ( status.upper(), profile["project"] ) msg = EMAIL_COUNT_MESSAGE % (profile["project"], snapshot_url, basesnapshot_url, @@ -522,3 +522,4 @@ def main(): if __name__ == "__main__": sys.exit(main()) + -- 2.7.4