Use tree API
@@ -184,7 +184,7 @@ | ||
184 | 184 | # ITimelineEventProvider methods |
185 | 185 | def get_timeline_filters(self, req): |
186 | 186 | if req.perm.has_permission('CHANGESET_VIEW'): |
187 | - yield ('build', 'Hudson Builds') | |
187 | + yield ('build', 'Jenkins Builds') | |
188 | 188 | |
189 | 189 | def get_timeline_events(self, req, start, stop, filters): |
190 | 190 | if isinstance(start, datetime): # Trac>=0.11 |
@@ -206,7 +206,7 @@ | ||
206 | 206 | if len(self.jobs) > 0 and not job['name'] in self.jobs: |
207 | 207 | continue |
208 | 208 | |
209 | - job_api_url = get_job_url(job['url'] + 'api/python?depth=2', self.hudson_url) | |
209 | + job_api_url = get_job_url(job['url'] + 'api/python?depth=2&tree=builds[timestamp,result,url,number,description]', self.hudson_url) | |
210 | 210 | try: |
211 | 211 | json = eval(self.url_opener.open(job_api_url).readline()) |
212 | 212 | except: |