mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
buildbot: add force_upload
This commit is contained in:
parent
6e15ce66ea
commit
f93e9cfebf
2 changed files with 3 additions and 4 deletions
|
@ -505,9 +505,8 @@ def clean(pkgdirname):
|
|||
def clean_all():
|
||||
return jobsmgr.reset_dir(all=True)
|
||||
|
||||
def force_upload(pkgdirname):
|
||||
#jobsmgr.force_upload_package(pkgdirname)
|
||||
return "not implemented"
|
||||
def force_upload(pkgdirname, overwrite=False):
|
||||
return jobsmgr.force_upload_package(pkgdirname, overwrite=overwrite)
|
||||
|
||||
def getup():
|
||||
return jobsmgr.getup()
|
||||
|
|
|
@ -110,7 +110,7 @@ if __name__ == '__main__':
|
|||
parser.exit(status=1)
|
||||
server=(MASTER_BIND_ADDRESS, MASTER_BIND_PASSWD)
|
||||
for p in action[1:]:
|
||||
logger.info(run('force_upload', args=(p,), server=server))
|
||||
logger.info(run('force_upload', args=(p,), kwargs={'overwrite': args.overwrite}, server=server))
|
||||
elif action[0] == 'log':
|
||||
logger.info('printing logs')
|
||||
print_log()
|
||||
|
|
Loading…
Reference in a new issue