|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

I can see that sometimes buildtimelineWidget is not displaying all the build data on the timeline. Some times it is.
I can see in my jenkins timeline that 10 days ago it is displaying failed builds. Also the builds have not ran since then.
I can see on this page it is only displaying the last day of builds on the time line. They are successful builds.
https://ci.jenkins-ci.org/view/All%20Failed/builds
I can see in the code for BuildTimelineWidget that it is returning builds that fit with the a certain time criteria. The criteria is passed to the method and it returns that builds that satisfy it.
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/BuildTimelineWidget.java?source=cc
this jelly file passes the time criteria to the method over http.
https://github.com/jenkinsci/jenkins/blob/807e3c81d41c7d2d86bfa0469289e070fea42a6c/core/src/main/resources/hudson/model/BuildTimelineWidget/control.jelly
the band which is how far back and how far forward the widget will to in time. E.g you can not make it go forward more than a day with your mouse.
Widget is setup with with time constraints like this.
theme1.timeline_start = new Date(${it.firstBuild.timeInMillis-24*60*60*1000});
theme1.timeline_stop = new Date(${it.lastBuild.timeInMillis+24*60*60*1000});
If the widget is going back to day of the first build then the correct information is being returned from the class for the widget theme is setup properly. IT must be the criteria that is passed to the method BuildTimelineWidgetd.doData that makes it return builds that have run in the last day.
It is the eventsource parameter that contains the build information to present on the widget. It holds events to display on similes.
Timeline.createBandInfo({ width: "20%", intervalUnit: Timeline.DateTime.DAY, intervalPixels: 200, eventSource: eventSource1, timeZone: tz, theme: theme1, layout: 'overview' // original, overview, detailed }),
Answer
This is the code that has to change in the jelly file. If these are increased then it will display more builds on the widget. Not sure where the code is to get these dates are.
var min = Math.floor(band.getMinDate().getTime()/interval);
var max = Math.ceil(band.getMaxDate().getTime()/interval);