add a --master-build-id command ling arg to cbuildbot
This command line argument will eventually be passed in to cbuildbot by
buildbot, for slave builds, so that they know their master's build id
immediately at the start of the build.
BUG=chromium:398267
TEST=None
Change-Id: Id13d09cd591a1a3aed0d7ca8cf4ae4a64712b9d9
Reviewed-on: https://chromium-review.googlesource.com/210496
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
diff --git a/scripts/cbuildbot.py b/scripts/cbuildbot.py
index d52e62f..1222deb 100644
--- a/scripts/cbuildbot.py
+++ b/scripts/cbuildbot.py
@@ -1371,6 +1371,10 @@
group.add_remote_option('--metadata_dump', default=None,
help=('Path to a json dumped metadata file. This '
'will be used as the initial metadata.'))
+ group.add_remote_option('--master-build-id', default=None, type=int,
+ api=constants.REEXEC_API_MASTER_BUILD_ID,
+ help=('cidb build id of the master build to this '
+ 'slave build.'))
group.add_remote_option('--mock-tree-status', dest='mock_tree_status',
default=None, action='store',
help=('Override the tree status value that would be '