mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
buildbot: push commands return code error
This commit is contained in:
parent
91a7c2edfb
commit
e3fa77ca6a
1 changed files with 6 additions and 4 deletions
10
buildbot.py
10
buildbot.py
|
@ -291,8 +291,9 @@ class jobsManager:
|
|||
except Exception:
|
||||
time_to_sleep = (tries + 1) * 60
|
||||
logger.error(f'We are getting problem uploading {f.name}, wait {time_to_sleep} secs')
|
||||
if not rrun('push_add_time', args=(f.name, time_to_sleep + timeout)):
|
||||
logger.error('Unable to run push_add_time')
|
||||
patret = rrun('push_add_time', args=(f.name, time_to_sleep + timeout))
|
||||
if not patret is None:
|
||||
logger.error(f'Unable to run push_add_time, reason: {patret}')
|
||||
print_exc_plus()
|
||||
if tries + 1 < max_tries:
|
||||
sleep(time_to_sleep)
|
||||
|
@ -300,8 +301,9 @@ class jobsManager:
|
|||
break
|
||||
else:
|
||||
logger.error(f'Upload {f.name} failed, running push_fail and abort.')
|
||||
if not rrun('push_fail', args=(f.name,)):
|
||||
logger.error('Unable to run push_fail')
|
||||
pfret = rrun('push_fail', args=(f.name,))
|
||||
if not pfret is None:
|
||||
logger.error(f'Unable to run push_fail, reason: {pfret}')
|
||||
raise RuntimeError('Unable to upload some files')
|
||||
logger.info(f'Requesting repo update for {pkg_update_list_human}')
|
||||
res = "unexpected"
|
||||
|
|
Loading…
Reference in a new issue