Add an ImageTree class and change to searching *all applicable* branches when looking for the best cache tag.
This commit is contained in:
parent
98b4f62ef7
commit
893ae46dec
4 changed files with 228 additions and 20 deletions
|
@ -7,6 +7,7 @@ class StatusHandler(object):
|
|||
|
||||
def __init__(self, build_logs, repository_build_uuid):
|
||||
self._current_phase = None
|
||||
self._current_command = None
|
||||
self._uuid = repository_build_uuid
|
||||
self._build_logs = build_logs
|
||||
|
||||
|
@ -26,9 +27,16 @@ class StatusHandler(object):
|
|||
self._build_logs.append_log_message(self._uuid, log_message, log_type, log_data)
|
||||
|
||||
def append_log(self, log_message, extra_data=None):
|
||||
if log_message is None:
|
||||
return
|
||||
|
||||
self._append_log_message(log_message, log_data=extra_data)
|
||||
|
||||
def set_command(self, command, extra_data=None):
|
||||
if self._current_command == command:
|
||||
return
|
||||
|
||||
self._current_command = command
|
||||
self._append_log_message(command, self._build_logs.COMMAND, extra_data)
|
||||
|
||||
def set_error(self, error_message, extra_data=None, internal_error=False):
|
||||
|
|
Reference in a new issue