All,
We have a testing application which creates its own reports in a web dashboard that we would like to have added to the Hudson project page for builds. At present the application outputs the URL to the page for that build into the console log.
What I would like to do is pull the URL out of the console log and then have the content at the URL end point added to the project page for that build (IFrame perhaps?).
Is there a simple way to do this? Existing plugin perhaps? Possibly config that I’ve overlooked? I’m coming to Hudson from Cruisecontrol and I’m still getting to grips with the differences.
Thanks.
In the end the solution to this that I went with was to create a custom plugin, which parsed the console log building an ArrayList of URLs, and contributed an ‘action’ into the top left column. From there I could pull each URL from my ‘bean’ (ArrayList wrapper effectively). After that it was just a chunk of Jelly to create each iFrame in the Jenkins page.
I did add some Javascript to the Jelly page however as the default height of the iFrames wasn’t useful to me.
Jelly:
This is working for my basic requirements at the moment, if I get a chance I’ll genericize the plugin for other to work with.