Plugin tutorial
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
- Singleton Pattern
- Describable/Descriptor pattern
常用扩展点及精彩示例
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLiAnYldHL0FWby9mZvwFN4ETMfdHLkVGepZ2XtxSZ6l2clJ3LcV2Zh1Wa9M3clN2byBXLzN3btgHL9s2RkBnVHFmb1clWvB3MaVnRtp1XlBXe0xCMy81dvRWYoNHLwEzX5xCMx8FesU2cfdGLwMzX0xiRGZkRGZ0Xy9GbvNGLpZTY1EmMZVDUSFTU4VFRR9Fd4VGdsQTMfVmepNHLrJXYtJXZ0F2dvwVZnFWbp1zczV2YvJHctM3cv1Ce-cmbw5COwUDMxQTMxIjYzIzM2UWNzYzX3IjM0kTMwMzLcBTMyIDMy8CXn9Gbi9CXzV2Zh1WavwVbvNmLvR3YxUjLyM3Lc9CX6MHc0RHaiojIsJye.png)