Are you sure you want to do this only once, when you _install_ the plugin? Note that there may never be an actual installation when the plugin HPI is just put into the plugins/ folder, for example.
If you want to do this whenever the plugin is _loaded_ (every Jenkins startup, for example), look at @Initializer. > On 07.09.2015, at 06:41, Vinodhini Vijay <[email protected]> wrote: > > > > Hello, > > I would like to initialize some other applications during my Jenkins Plugin > Installation. May I know how could I do this ? > > What Class should I extend so that, whenever my Plugin is installed or > re-installed, I could run some commands to initialize some of my application? > > I tried to extend from InstallPluginCommand, and override the run method. > But, I couldn't get the debug point inside the run method. > > Thank you! > > -- > 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/6d12ee81-63db-4f7c-a2ed-a80bfa5f07ae%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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/0B16AD50-8605-4AA7-A0B7-0AC9770D339D%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
