Add scheduled_slaves to metadata in the master build.

When a master build schedules slave builds via Buildbucket, add the
scheduled buildbucket_ids into its metadata.json. This helps to keep
tracking the status of the slave builds using the buildbucket_ids saved.

BUG=chromium:655295
TEST=unit_test

Change-Id: I59b159c12462bb6d0493d15a3760e9cc6835c6b3
Reviewed-on: https://chromium-review.googlesource.com/398443
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Ningning Xia <nxia@chromium.org>
Reviewed-by: Ningning Xia <nxia@chromium.org>
4 files changed