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:
|
except Exception:
|
||||||
time_to_sleep = (tries + 1) * 60
|
time_to_sleep = (tries + 1) * 60
|
||||||
logger.error(f'We are getting problem uploading {f.name}, wait {time_to_sleep} secs')
|
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)):
|
patret = rrun('push_add_time', args=(f.name, time_to_sleep + timeout))
|
||||||
logger.error('Unable to run push_add_time')
|
if not patret is None:
|
||||||
|
logger.error(f'Unable to run push_add_time, reason: {patret}')
|
||||||
print_exc_plus()
|
print_exc_plus()
|
||||||
if tries + 1 < max_tries:
|
if tries + 1 < max_tries:
|
||||||
sleep(time_to_sleep)
|
sleep(time_to_sleep)
|
||||||
|
@ -300,8 +301,9 @@ class jobsManager:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
logger.error(f'Upload {f.name} failed, running push_fail and abort.')
|
logger.error(f'Upload {f.name} failed, running push_fail and abort.')
|
||||||
if not rrun('push_fail', args=(f.name,)):
|
pfret = rrun('push_fail', args=(f.name,))
|
||||||
logger.error('Unable to run push_fail')
|
if not pfret is None:
|
||||||
|
logger.error(f'Unable to run push_fail, reason: {pfret}')
|
||||||
raise RuntimeError('Unable to upload some files')
|
raise RuntimeError('Unable to upload some files')
|
||||||
logger.info(f'Requesting repo update for {pkg_update_list_human}')
|
logger.info(f'Requesting repo update for {pkg_update_list_human}')
|
||||||
res = "unexpected"
|
res = "unexpected"
|
||||||
|
|
Loading…
Reference in a new issue