Hi, I would like to include the trend graph from junit test results in a build email sent out by the email-ext plugin. Because I am using a hosted solution that requires a login to access any Jenkins web resources, I can't simply put the url in an html img tag. I need to attach the image to the file before it is sent out.
The approaches I've attempted so far are to use the pre-send script to generate the graph on the fly using the Jenkins api. This doesn't seem to be feasible because the api exposed for generating the graph appears to assume that you are in the middle of handling a web request (see History.getDurationGraph() <https://github.com/jenkinsci/junit-plugin/blob/master/src/main/java/hudson/tasks/junit/History.java#L98>). Next, I tried writing a pre-send script using Groovy's HTTPBuilder to send an http request to retrieve the image. I ran into the problem that HTTPBuilder is not available in the pre-send script. Does anyone have a simpler approach? I'm not that familiar with Jenkins or Groovy, so I could have missed something in my attempts above. Any comments on them? Thanks in advance! -Mike -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.