• R/O
  • SSH
  • HTTPS

shibuya-trac: Commit


Commit MetaInfo

Revision825 (tree)
Zeit2012-06-08 11:46:44
Autorakihirox

Log Message

Use tree API

  • use tree api to get information from jenkins
  • fix "Jenkins" string in timeline

Ändern Zusammenfassung

Diff

--- plugins/hudsontracplus/0.11/HudsonTracPlus/HudsonTracPlusPlugin.py (revision 824)
+++ plugins/hudsontracplus/0.11/HudsonTracPlus/HudsonTracPlusPlugin.py (revision 825)
@@ -184,7 +184,7 @@
184184 # ITimelineEventProvider methods
185185 def get_timeline_filters(self, req):
186186 if req.perm.has_permission('CHANGESET_VIEW'):
187- yield ('build', 'Hudson Builds')
187+ yield ('build', 'Jenkins Builds')
188188
189189 def get_timeline_events(self, req, start, stop, filters):
190190 if isinstance(start, datetime): # Trac>=0.11
@@ -206,7 +206,7 @@
206206 if len(self.jobs) > 0 and not job['name'] in self.jobs:
207207 continue
208208
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)
210210 try:
211211 json = eval(self.url_opener.open(job_api_url).readline())
212212 except:
Show on old repository browser