commit | 1a5fe235929a19ce3e44c899d381f497b38bab50 | [log] [tgz] |
---|---|---|
author | Anthony Polito <apolito@google.com> | Fri Jan 24 23:17:52 2020 +0000 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 24 23:17:52 2020 +0000 |
tree | 8b89ee8f0b2beb93673ec866a4d54fbdb137166f | |
parent | bf4e7a722ba4e02c7c2fc25ee3eed9f124b6bb83 [diff] [blame] |
add revision to scheduleBuild call for git cl try if needed. Bug: 1043877 Change-Id: I5363dc1ad7f6b7e0ce9ce9885c86e357c3c65339 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2016162 Reviewed-by: Andrii Shyshkalov <tandrii@google.com> Commit-Queue: Anthony Polito <apolito@google.com>
diff --git a/git_cl.py b/git_cl.py index e0c8257..b41a5ee 100755 --- a/git_cl.py +++ b/git_cl.py
@@ -528,6 +528,14 @@ ] + shared_tags, } }) + + if options.revision: + requests[-1]['scheduleBuild']['gitilesCommit'] = { + 'host': gerrit_changes[0]['host'], + 'project': gerrit_changes[0]['project'], + 'id': options.revision + } + return requests