Change-Id: I9c9c4f546e21ce46e7a30a0a5b045c64367d2d5a
gerrit_newrev = os.getenv("GERRIT_NEWREV")
gerrit_account_name = os.getenv("GERRIT_EVENT_ACCOUNT_NAME")
gerrit_account_email = os.getenv("GERRIT_EVENT_ACCOUNT_EMAIL")
-
- event = get_gerrit_event()
+ if os.getenv('TRIGGER_INFO'):
+ event = trigger_info(os.getenv('TRIGGER_INFO'))
+ os.environ["GERRIT_SR_SUBMIT_LOG_ID"] = event.get("sr_submit_log_id")
+ else:
+ event = get_gerrit_event()
# Init backend database
redis_host = os.getenv("REDIS_HOST")