Loading graph once during start up.

14 views
Skip to first unread message

Jayalakshmi Nair

unread,
Aug 6, 2020, 3:19:17 PM8/6/20
to Jenkins Developers

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

Gavin Mogan

unread,
Aug 6, 2020, 3:25:46 PM8/6/20
to Jenkins Developers
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() {

--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/71a96bc5-da4d-443b-a16e-4347fb0fd0c0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages