编写jenkins插件:文档在哪里? [英] Writing jenkins plugin: where is the documentation?

查看:144
本文介绍了编写jenkins插件:文档在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我当前的项目中,我们正在使用Jenkins监视我们的构建.现在他们要我编写一个Jenkins插件来添加更多监视参数.

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. Hudson是否扫描类扩展通知程序? (我看不到 到通知者的任何地方的引用 监视插件的类呢 它必须以某种方式被调用,因为它 添加到主页)

  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)

rootaction类是否导致 URL绑定,因为似乎 没有提及 在此处输入代码

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

果冻文件如何绑定 到正确的页面,因为 映射不匹配.还是 Jenkins扫描名称为Bla的文件夹 当你有一个叫做Bla的课时 扩展RootAction?

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?

推荐答案

有用的视频:

  • 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.

这篇关于编写jenkins插件:文档在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆