Writing jenkins plugin: where is the documentation?

五迷三道 提交于 2019-12-05 02:43:27

问题


On my current project we're using Jenkins to monitor our builds. Now they want me to write a Jenkins plugin to add some more monitoring parameters.

I've taken a look at how the status monitor plugin works, and I can't figure some things out. I've tried to look for documentation for writing a plugin, but that seems to be sorely lacking. (the site only mentions how to generate the base project, and refers to a tutorial that's not that informative)

What I'm trying to do is just add some options to each build, add a link, and a monitoring page. Adding to the main page is apparently done by adding the action, but I'm still trying to figure out the rest. And how it all ties in, such as:

  1. Does hudson scan for class extending notifier? (I can see no references anywhere to the notifier class of the monitoring plugin yet it must be called somehow since it is added to the main page)

  2. Does the rootaction class cause the URL binding since there also seem to be no references to that enter code here

  3. And how does jelly files get bound to the correct page since the mapping do not match. Or does Jenkins scan for a folder names Bla when you have a class called Bla extending RootAction?

Does anyone have any pointers, or a place where I can find some decent documentation?


回答1:


I've seen people use a tutorial I found here to make plug-ins for Hudson. Jenkins wasn't forked all that long ago, so it should be mostly the same - you'd just need to account for the changed repositories.




回答2:


Helpful videos:

  • 2013-06-15 Jenkins Hackathon -- Introduction zu Plugin Development by Kohsuke Kawaguchi have a lot of information about finding docs, getting started, debugging and testing plugins. Must see video!
  • 2012 San Fran JUC: Justin Ryan - Getting To Your Third Plugin good explain of how to build structure of plugins, what is descriptors and describable.
  • http://cleantestcode.wordpress.com/2013/11/03/how-to-write-a-jenkins-plugin-introduction/ - cycle of 4 posts about writing UI-extend plugin.


来源:https://stackoverflow.com/questions/5531729/writing-jenkins-plugin-where-is-the-documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!