Commit 64d4a375 authored by Edward Lemur's avatar Edward Lemur Committed by Commit Bot

git-cl: Return exit code of bb when executing git-cl try.

Bug: 976104
Change-Id: I09412c19e373af05e629dccc9a9a4dbc760d3d89
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1807613
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@google.com>
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@google.com>
parent 4a60db4c
......@@ -488,6 +488,8 @@ def _trigger_try_jobs(auth_config, changelist, buckets, options, patchset):
print_text.append('To see results in browser, run: git cl web')
print('\n'.join(print_text))
return ret_code
def fetch_try_jobs(auth_config, changelist, buildbucket_host,
patchset=None):
......@@ -4737,12 +4739,7 @@ def CMDtry(parser, args):
return 1
patchset = cl.GetMostRecentPatchset()
try:
_trigger_try_jobs(auth_config, cl, buckets, options, patchset)
except BuildbucketResponseException as ex:
print('ERROR: %s' % ex)
return 1
return 0
return _trigger_try_jobs(auth_config, cl, buckets, options, patchset)
@metrics.collector.collect_metrics('git cl try-results')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment