build_specified_commit: Return failure rather than raise exception when rebuild fails. (#4964)

This commit is contained in:
Oliver Chang 2021-01-14 15:49:15 +11:00 committed by GitHub
parent 0a7813d978
commit 0612668e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -274,7 +274,8 @@ def build_fuzzers_from_commit(commit,
# Rebuild image and re-copy src dir since things in /src could have changed. # Rebuild image and re-copy src dir since things in /src could have changed.
if not _build_image_with_retries(build_data.project_name): if not _build_image_with_retries(build_data.project_name):
raise RuntimeError('Failed to rebuild image.') logging.error('Failed to rebuild image.')
return False
cleanup() cleanup()