am 0d0188b0: Merge "Only build changes that come from @google.com."

* commit '0d0188b0c7e017e431c83b2f7e4956137430b6d9':
  Only build changes that come from @google.com.
This commit is contained in:
Dan Albert 2015-01-12 19:55:19 +00:00 committed by Android Git Automerger
commit cc1a8935c5

View File

@ -200,6 +200,8 @@ def build_project(gerrit_info, dry_run):
def handle_change(gerrit_info, _, dry_run):
if '@google.com' not in gerrit_info['Gerrit-Owner']:
return True
return build_project(gerrit_info, dry_run)
handle_newchange = handle_change
handle_newpatchset = handle_change
@ -230,6 +232,10 @@ def handle_comment(gerrit_info, body, dry_run):
if 'Verified+1' in body:
drop_rejection(gerrit_info, dry_run)
# TODO(danalbert): Needs to be based on the account that made the comment.
if '@google.com' not in gerrit_info['Gerrit-Owner']:
return True
command_map = {
'clean': lambda: clean_project(gerrit_info, dry_run),
'retry': lambda: build_project(gerrit_info, dry_run),