I got it to produce only one by having getProjectAction return the same instance whenever it is called.
On Thursday, May 15, 2014 6:30:04 PM UTC+1, twr wrote: > > That works perfectly. Thanks. > > *However, *the only way I've managed to get it to actually add to the > page is by overriding getProjectAction on my Notifier (Publisher) and > returning a new instance of my action, but for some reason it *gets added > twice*? (currently stuck on version 1.509.2 of Jenkins - if that makes a > difference) > > On Thursday, May 15, 2014 6:16:40 PM UTC+1, ogondza wrote: >> >> On Thu, 15 May 2014 19:06:28 +0200, twr <[email protected]> >> wrote: >> >> > I make extensive use of summary actions on builds, but I would like to >> do >> > something similar on the project page (for a summary of all builds)? >> > >> > Where would I start with this? (best I've managed is links to alternate >> > page via ProminentProjectAction and associated index.jelly - but I >> would >> > much prefer a summary that appears in the project page itself). >> > >> > Thanks >> >> Project actions optionally includes jobMain.jelly[1]. Quite similar to >> build's summary.jelly. >> >> [1] >> >> https://github.com/jenkinsci/jenkins/blob/0f7b144fd32544a872075d58300a53b9abcca5f4/core/src/main/resources/hudson/model/AbstractProject/main.jelly#L77-80 >> >> >> HTH >> -- >> oliver >> > -- 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]. For more options, visit https://groups.google.com/d/optout.
