If you are using Groovy, you can use Jenkins API to retrieve this kind of 
information. You can have a look at some of the Scriptler scripts 
https://scriptlerweb.appspot.com/catalog/list, and also check examples in the 
Groovy plug-in, StackOverflow and also check Jenkins' source code 
https://github.com/jenkinsci/jenkins
HTHBruno

 
      From: Annie Jiao <[email protected]>
 To: [email protected] 
 Sent: Tuesday, July 7, 2015 9:41 AM
 Subject: Re: embed svg created by d3 in plug-in
   
This has been incredibly helpful! Thanks!
I see that it reads data from a csv file. Is there a way to populate it with 
data from the builds, instead of a preset file? (Suppose I want to plot % of 
builds that passed everyday for the past week).

On Wednesday, July 1, 2015 at 5:17:57 PM UTC-7, Ioannis Moutsatsos wrote:
No special plugin needed. You should be able to add some standard HTML 
(including an iframe) element to a project's description and it will be 
displayed when the job page is rendered. Take a look here where I've added an 
animated gif to demo how a build is executed.
Hope this helps to get you started.


On Wednesday, July 1, 2015 at 6:37:51 PM UTC-4, Annie Jiao wrote:
Yup, the svg will change to reflect data as new builds occur. (The navigation 
is secondary)
Do I need to install any plug-ins to use an iFrame?
Thanks a lot for your help!

On Wednesday, July 1, 2015 at 12:37:27 PM UTC-7, Ioannis Moutsatsos wrote:
So, will the SVG change as more builds are accumulated in the job history? It 
sounds like you want to use it for navigation purposes.You can include a 
graphic in your project description using HTML, even an iFrame.
It will then display on the http://localhost:8080/ jenkins/job/jobname/ page

On Wednesday, July 1, 2015 at 2:25:24 PM UTC-4, Annie Jiao wrote:
this'll be on the job level -- as in
http://localhost:8080/jenkins/ job/jobname/

On Wednesday, July 1, 2015 at 7:09:25 AM UTC-7, Ioannis Moutsatsos wrote:
I'm confused from the description of what you are trying to do.Where is this 
SVG graphic going to be displayed?   
   - Job level (ie is this going to be on the build UI) or
   - Build report level (ie part of the results after a build)
Depending on one of this options we can suggest some options.
On Tuesday, June 30, 2015 at 5:34:16 PM UTC-4, Annie Jiao wrote:
is it possible to create an svg graphic (non-interactive) using D3 and 
embedding the result in a jenkins plug-in?
I do plan on making different parts of the svg clickable and link to other 
pages further down the road.
Thanks!





-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/19aa8409-edfd-4121-9674-579e4052bf2b%40googlegroups.com.


For more options, visit https://groups.google.com/d/optout.


   

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/992039547.8012.1436222238539.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to