Add possibility to specify a realm with mb.py

Bug: webrtc:13134
Change-Id: I886b8b7612d4f1c59abe2c2484ab9e556bcd27ef
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/230784
Reviewed-by: Christoffer Jansson <jansson@google.com>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#34888}
This commit is contained in:
Mirko Bonadei 2021-08-31 12:03:43 +02:00 committed by WebRTC LUCI CQ
parent 126d0b932f
commit 338d31435d

View file

@ -96,6 +96,9 @@ class MetaBuildWrapper(object):
default=self.default_isolate_map,
help='path to isolate map file '
'(default is %(default)s)')
subp.add_argument('-r', '--realm', default='webrtc:try',
help='optional LUCI realm to use (for '
'example when triggering tasks on Swarming)')
subp.add_argument('-g', '--goma-dir',
help='path to goma directory')
subp.add_argument('--android-version-code',
@ -390,6 +393,8 @@ class MetaBuildWrapper(object):
cmd = [
self.PathJoin('tools', 'luci-go', 'swarming'),
'trigger',
'-realm',
self.args.realm,
'-digest',
cas_digest,
'-server',