Add a way to disable build summary

List what was built/failed/skipped is quite long and not always
interesting. Add a way to disable it.

Change-Id: If171102e665dba627bac30ae81deee2d3ab10595
This commit is contained in:
Marcin Juszkiewicz 2020-07-07 14:43:07 +02:00
parent 69092eb574
commit 5e5844a6ad
3 changed files with 11 additions and 4 deletions

View File

@ -252,7 +252,9 @@ _CLI_OPTS = [
cfg.BoolOpt('quiet', short='q', default=False,
help='Do not print image logs'),
cfg.BoolOpt('enable-unbuildable', default=False,
help='Enable images marked as unbuildable')
help='Enable images marked as unbuildable'),
cfg.BoolOpt('summary', default=True,
help='Show summary at the end of build')
]
_BASE_OPTS = [

View File

@ -1453,8 +1453,9 @@ def run_build():
build_queue.put(WorkerThread.tombstone)
raise
results = kolla.summary()
if conf.summary:
results = kolla.summary()
if conf.format == 'json':
print(json.dumps(results))
kolla.cleanup()
if conf.format == 'json':
print(json.dumps(results))
return kolla.get_image_statuses()

View File

@ -0,0 +1,4 @@
---
features:
- |
Added new option "--(no)summary" to allow to hide after build summary.