Finally I managed to try the TransientActionFactory<AbstractProject> approach and it works indeed. Thank you once more.
On Friday, August 28, 2015 at 5:53:14 PM UTC+2, Jesse Glick wrote: > > On Fri, Aug 28, 2015 at 9:49 AM, <[email protected] <javascript:>> > wrote: > > My Jenkins plugin implements an TransientProjectActionFactory in order > to > > provide project-level action. Unfortunately the action doesn't appear > until > > the Jenkins is restarted. > > Probably the factory is getting used for newly created and newly > modified projects, but not for existing projects which were not > reconfigured, since there is a cache of transient actions. > > Try using `TransientActionFactory<Job>` (or > `TransientActionFactory<AbstractProject>` if required) instead. This > gets called every time `getAllActions` is called, without caching. > This means your implementation must have no measurable overhead, of > course. > -- 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/9b7d685b-d4f4-428a-8635-4fa24b8047a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
