Add enqueue_time to JSON output for a change

This adds a javascript timestamp for each change in the JSON output.

Change-Id: I7965c6a7ff6e4e5522da3c51936cfdfb6cf36e91
Reviewed-on: https://review.openstack.org/32064
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
Dan Smith 2013-06-06 16:33:33 -07:00 committed by Jenkins
parent 42f7482843
commit e80ad546bd
1 changed files with 1 additions and 0 deletions

View File

@ -254,6 +254,7 @@ class Pipeline(object):
ret['url'] = None
ret['id'] = changeish._id()
ret['project'] = changeish.project.name
ret['enqueue_time'] = int(changeish.enqueue_time * 1000)
ret['jobs'] = []
for job in self.getJobs(changeish):
build = changeish.current_build_set.getBuild(job.name)