You can use @initalizer. You'll have to read up on what each stage means
though.

@Initializer(after = InitMilestone.JOB_LOADED)
public static void init() {

On Thu., Aug. 6, 2020, 12:19 p.m. Jayalakshmi Nair, <
[email protected]> wrote:

>
> Hello,
>
> The plugin that I am working on creates the graph for a job each time the
> build page loads/or is refreshed. As creating the graph each time is time
> consuming, is it possible to create the graph only once during the jenkins
> startup?
> If it is possible, where should the create graph method be called?
>
> Thanks
> -Jaya
>
> --
> 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/71a96bc5-da4d-443b-a16e-4347fb0fd0c0n%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/71a96bc5-da4d-443b-a16e-4347fb0fd0c0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAG%3D_DutsfmC8W7Sp4Nan1sxvXGVpcdU1G2DDWB5W_NEQ9KiPog%40mail.gmail.com.

Reply via email to