From 52d2be79533bc6c69611a7c09cd1df651476f4e7 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Mon, 10 Feb 2014 15:03:55 -0500 Subject: [PATCH] Identify build commands separately from their output. --- workers/dockerfilebuild.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workers/dockerfilebuild.py b/workers/dockerfilebuild.py index 3d0b99933..69cc89e64 100644 --- a/workers/dockerfilebuild.py +++ b/workers/dockerfilebuild.py @@ -101,14 +101,17 @@ class DockerfileBuildContext(object): built_image = None for status in build_status: logger.debug('Status: %s', str(status.encode('utf-8'))) - build_logs.append_log_message(self._build_uuid, str(status)) step_increment = re.search(r'Step ([0-9]+) :', status) if step_increment: + build_logs.append_log_entry({'message': str(status), + 'is_command': True}) current_step = int(step_increment.group(1)) logger.debug('Step now: %s/%s' % (current_step, self._num_steps)) with self._status as status: status['current_command'] = current_step continue + else: + build_logs.append_log_message(self._build_uuid, str(status)) complete = re.match(r'Successfully built ([a-z0-9]+)$', status) if complete: