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:
parent
69092eb574
commit
5e5844a6ad
@ -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 = [
|
||||
|
@ -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()
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Added new option "--(no)summary" to allow to hide after build summary.
|
Loading…
Reference in New Issue
Block a user