Thanks for the tip. There should be no measurable overhead imposed by the action creation. I'll give this a try and report back later...
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/83fb560d-75a9-4333-89c5-9a646b22ec18%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
