reason = 'SR-SYNC'
snapshot = None
project_to_create_timestamp = None
+ triggered_by = "tizen.build@samsung.com"
+
if os.getenv('UPSTREAM_SNAPSHOT', None) and os.getenv('UPSTREAM_OBS_PROJECT', None):
snapshot = os.getenv('UPSTREAM_SNAPSHOT')
project = os.getenv('UPSTREAM_OBS_PROJECT')
project = manual_trigger.get('source')
target_project = manual_trigger.get('target')
project_to_create_timestamp = manual_trigger.get('project_to_create_timestamp')
+ triggered_by = manual_trigger.get('useremail', triggered_by)
# Parse triggered data
official_data = touch_trigger_data(manual_trigger)
else: # Consider file parameter comes
project = manual_trigger.get('source')
target_project = manual_trigger.get('target')
project_to_create_timestamp = manual_trigger.get('project_to_create_timestamp')
+ triggered_by = manual_trigger.get('useremail', triggered_by)
# Parse triggered data
official_data = touch_trigger_data(manual_trigger)
"commit_msg" : "N/A",
"submit_date" : str(bm_end_datetime),
"submit_msg" : "N/A",
- "submitter" : "<tizen.build@samsung.com>",
+ "submitter" : "<%s>" % triggered_by,
"bm_member_sr_info" : {project_to_create: requests_item[project_to_create][r:(r+split_step)]},
"bm_sync_git_tag" : bm_sync_git_tag,
"gerrit_project" : "N/A",
trigger_next("BUILD-MONITOR_%s_%d" % (bm_stage, r), bm_data)
# Mail notification
- if True:
+ if False:
mymail = MailSender()
if len(snapshot.split(',')) > 1:
mymail.add_title('[SR-Sync] %s(Manual) => %s' % (ret_data.get('project'), target_project))
mymail.send_mail()
del mymail
-
+
if __name__ == '__main__':
sys.exit(main())