Hudson Build-Time Trend Plugin?

落爺英雄遲暮 提交于 2019-12-09 08:05:50

问题


Is there a plugin which would allow me to create a "trend" graph for a hudson build which shows the build time for that project?

I'm tasked with speeding up the build and I'd like to show a nice trend as I speed it up.


回答1:


This is supported out of the box: http://SERVER/hudson/job/JOBNAME/buildTimeTrend




回答2:


To follow up from the @Pascal's answer, if you would like to bring this graph and show it more prominently you can edit the job description and add an image directly there

<img src="http://test.vlc/job/flow_tester/buildTimeGraph/png" />

That way you can see the time trend every time you open the job.




回答3:


To follow up from the @Jamie Cooks's answer, you don't need to provide full url for this graph, you can just use the relative path like this in your job description -

<img src='buildTimeGraph/png' />

Benefit of this is that you don't need to change/customize the url for each job.

Moreover, to enable this on all your jobs you can use this groovy script

import hudson.model.*
import hudson.maven.*
import hudson.tasks.*

for(item in Hudson.instance.items) 
{
  println("job $item.name")
  item.setDescription("<img src='buildTimeGraph/png' />");
}


来源:https://stackoverflow.com/questions/1772633/hudson-build-time-trend-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!