RBS mail title change 43/155043/1
authorhyokeun <hyokeun.jeon@samsung.com>
Thu, 12 Oct 2017 03:17:00 +0000 (12:17 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Thu, 12 Oct 2017 03:17:00 +0000 (12:17 +0900)
Change-Id: I34cdb86e379c6f93298579c44f36d0ad07031e54

job_create_sdkrootstrap.py

index 784ca96..0b70f54 100755 (executable)
@@ -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())
+