mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: avoid duplicate ouptut because of Download progress
This commit is contained in:
parent
a7f8c80f50
commit
3ad49f92af
@ -354,7 +354,11 @@ class Dockerfile(models.Model):
|
|||||||
# identifier changed
|
# identifier changed
|
||||||
if image_id != previous_result.identifier:
|
if image_id != previous_result.identifier:
|
||||||
should_save_result = True
|
should_save_result = True
|
||||||
if previous_result.output != docker_build_result_values['output']: # to discuss
|
def clean_output(output):
|
||||||
|
if not output:
|
||||||
|
return ''
|
||||||
|
return '\n'.join([line for line in output.split('\n') if not line.startswith('Downloading')])
|
||||||
|
if clean_output(previous_result.output) != clean_output(docker_build_result_values['output']): # to discuss
|
||||||
should_save_result = True
|
should_save_result = True
|
||||||
if previous_result.content != docker_build_result_values['content']: # docker image changed
|
if previous_result.content != docker_build_result_values['content']: # docker image changed
|
||||||
should_save_result = True
|
should_save_result = True
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.o_field_widget.o_field_runbotjsonb {
|
.o_field_widget.o_field_runbotjsonb {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user