mirror of https://github.com/google/oss-fuzz.git
Fix build status update. (#4224)
Check for valid statuses rather than only excluding the WORKING status. There are other failure statuses that need to be accounted for (e.g. EXPIRED).
This commit is contained in:
parent
1753fe12bf
commit
ccb5821f51
|
@ -46,7 +46,7 @@ def get_last_build(build_ids):
|
|||
for build_id in reversed(build_ids):
|
||||
project_build = cloudbuild.projects().builds().get(projectId=image_project,
|
||||
id=build_id).execute()
|
||||
if project_build['status'] == 'WORKING':
|
||||
if project_build['status'] not in ('SUCCESS', 'FAILURE', 'TIMEOUT'):
|
||||
continue
|
||||
|
||||
if not builds_status.upload_log(build_id):
|
||||
|
|
Loading…
Reference in New Issue