> On 28.10.2016, at 12:20, Zsolt Barnabás Garda <[email protected]> wrote: > > Hello all, > > I'm a beginner plugin developer, and I'm not sure how to use Stapler with > Jelly. > My post build plugin has a summary.jelly that shows some information on the > build pages of the project. > What I want is to have links in that summary in order to navigate to other > pages showing some additional information. > > In that summary.jelly that belongs to a class implementing Action and has a > method : public void doGraph(StaplerRequest req, StaplerResponse rsp) > (that writes a picture to the response) I put the followings: > > <a href="myplugin/graph"> > show all plots for all tests > </a> > > So when I click the link, a new HTML page is shown with the single picture. > > However what I want to achieve is to show pictures "inside" the Jenkins UI > (have the Jenkins header and sidebar, etc...) and have a jelly file that > produces the output in order to put more pictures in a table. (I guess the > latter is achiveable in a jelly:for).
Create a whatever.jelly file in the same directory as the summary.jelly. Put the entire view in there. To make it look 'like Jenkins', wrap your content in <l:layout> and <l:main-panel> tags. Then, from your summary.jelly, link to myplugin/whatever. -- 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/704F3D72-EEB8-418A-8CCA-E653284C0F39%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
