Groups
Groups
Sign in
Groups
Groups
Jenkins Developers
Conversations
About
Send feedback
Help
Jenkins plugin load completed event.
11 views
Skip to first unread message
Cheng Bao
unread,
Sep 16, 2016, 12:37:25 PM
9/16/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
Hi, I have some plugin initial code need to be run each time my plugin is loaded and ready.
What kind of listener class I need to extend to get this job done?
Thanks
Cheng Bao
unread,
Sep 16, 2016, 1:20:33 PM
9/16/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
Did some research, it is correct extension point:
http://javadoc.jenkins-ci.org/hudson/Plugin.html#postInitialize--
Cheng Bao
unread,
Sep 16, 2016, 1:57:35 PM
9/16/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
Update:
subclassing Plugin class is deprecated, this is the one:
http://javadoc.jenkins-ci.org/hudson/init/Initializer.html
or
http://javadoc.jenkins-ci.org/hudson/model/listeners/ItemListener.html#onLoaded--
Reply all
Reply to author
Forward
0 new messages