From: hyokeun Date: Tue, 8 Aug 2017 03:05:55 +0000 (+0900) Subject: E-mail guide: Do not delete SR tags. X-Git-Tag: submit/trunk/20190927.012743~345^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74e7c2883dcd6a2db3c778877ae4bbf2b070baf0;p=services%2Fjenkins-scripts.git E-mail guide: Do not delete SR tags. Change-Id: I03c407838590f5bdfd1dd40d3df9e1204bf21931 --- diff --git a/job_submit.py b/job_submit.py index 79985ec..8f73000 100644 --- a/job_submit.py +++ b/job_submit.py @@ -307,6 +307,13 @@ def main(build_type, build, event, sr_count): return 0 elif is_ref_deleted(event['oldrev'], event['newrev']): print '\nREFNAME "%s" is deleted, exit now' % event['refname'] + receiver = { 'author' : event['event_account_name'], + 'email' : event['event_account_email'] } + send_mail('[GBS submit guide] Deleting a SR tag is not recommended.', \ + '\nYou just deleted a tag %s.\n' \ + 'From CI POV, we do not recommend you to delete a tag.\n' \ + 'Thank you for your understanding.\n' \ + % (receiver.get('author'), event['refname']), receiver) return 0 mygerrit = Gerrit(event['hostname'], event['username'], \