buildbot: add force_upload

This commit is contained in:
JerryXiao 2019-09-06 15:24:48 +08:00
parent 6e15ce66ea
commit f93e9cfebf
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA
2 changed files with 3 additions and 4 deletions

View file

@ -505,9 +505,8 @@ def clean(pkgdirname):
def clean_all(): def clean_all():
return jobsmgr.reset_dir(all=True) return jobsmgr.reset_dir(all=True)
def force_upload(pkgdirname): def force_upload(pkgdirname, overwrite=False):
#jobsmgr.force_upload_package(pkgdirname) return jobsmgr.force_upload_package(pkgdirname, overwrite=overwrite)
return "not implemented"
def getup(): def getup():
return jobsmgr.getup() return jobsmgr.getup()

View file

@ -110,7 +110,7 @@ if __name__ == '__main__':
parser.exit(status=1) parser.exit(status=1)
server=(MASTER_BIND_ADDRESS, MASTER_BIND_PASSWD) server=(MASTER_BIND_ADDRESS, MASTER_BIND_PASSWD)
for p in action[1:]: 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': elif action[0] == 'log':
logger.info('printing logs') logger.info('printing logs')
print_log() print_log()