Plugin tutorial
重要接口
- ExtensionPoint & Describable:a plugin may simply implement extension points, registering them with the @hudson.Extension annotation for automatic detection by Jenkins.
- GlobalVariable
- Plugin:A plugin’s main entry point may be a PluginImpl class that extends from Plugin. Once Jenkins detects this plugin class (via its inheritance relationship from Plugin), it will create an instance, and invoke methods.
- @Initializer
- hudson.model.Action 和它的子接口们
查看更多…
Extensions
Extensions Index:Extension points defined in Jenkins Core 中列出的是Jenkins Core中所有的扩展点及目前所有的Jenkins插件中实现此扩展点的插件;剩余的部分是从每个插件的视角,描述了每个插件实现了Jenkins Core中的哪些扩展点,以及有哪些雷类实现了此扩展点;
Defining a new extension point
常用扩展点及精彩示例
Dependencies among plugins
一个插件可以依赖其他的插件,假设插件X依赖于插件Y,则在运行时,Jenkins会把X插件的classloader委托给已经创建好的Y插件的classloader
参考
Extend JenkinsPlugin TutorialHow-To GuidesJenkins Developer Reference Extensions Index Jenkins使用及插件开发介绍
火线教你如何开发Jenkins插件