Report the build execute_time via mqtt

Reporting the execute_time helps to distinguish between the preparation
phase and the actual execution phase.

Change-Id: Ib578efb39cede37996c3516e1a9a251d6ed8a4b0
This commit is contained in:
Benedikt Loeffler 2019-01-30 14:33:15 +01:00
parent 91e7e680a1
commit 81f4177559
2 changed files with 2 additions and 0 deletions

View File

@ -492,6 +492,7 @@ class TestMQTTConnection(ZuulTestCase):
'test')
self.assertEquals(mqtt_payload['buildset']['builds'][0]['result'],
'SUCCESS')
self.assertIn('execute_time', mqtt_payload['buildset']['builds'][0])
self.assertIn('timestamp', mqtt_payload)
self.assertIn('enqueue_time', mqtt_payload)

View File

@ -61,6 +61,7 @@ class MQTTReporter(BaseReporter):
'uuid': build.uuid,
'start_time': build.start_time,
'end_time': build.end_time,
'execute_time': build.execute_time,
'log_url': url,
'result': result,
})