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: Andrii Shyshkalov <tandrii@google.com>
changes/13/1807613/2
Edward Lemur 6 years ago committed by Commit Bot
parent 4a60db4c3e
commit 64d4a375c8

@ -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')

Loading…
Cancel
Save