mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-12-05 03:10:41 +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():
|
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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue