编写 jenkins 插件:文档在哪里?

发布于 2024-10-29 23:43:26 字数 570 浏览 0 评论 0原文

在我当前的项目中,我们使用 Jenkins 来监控我们的构建。现在他们想让我写一个 Jenkins 插件来添加更多的监控参数。

我已经研究了状态监视器插件的工作原理,但我无法弄清楚一些事情。我试图寻找编写插件的文档,但似乎非常缺乏。 (该网站仅提到如何生成基础项目,并引用了一个内容不丰富的教程)

我想做的只是向每个构建添加一些选项,添加一个链接和一个监视页面。添加到主页显然是通过添加操作来完成的,但我仍在尝试弄清楚其余的事情。以及它们是如何联系在一起的,例如:

  1. Hudson 是否扫描类扩展通知程序? (我看不出 对通知者的任何地方的引用 监控插件的类还没有 必须以某种方式调用它,因为它 添加到主页)

  2. rootaction类是否导致 URL 绑定似乎也有 没有提及那个 在此处输入代码

  3. 果冻文件如何绑定 到正确的页面,因为 映射不匹配。或者确实 Jenkins 扫描名为 Bla 的文件夹 当你有一门名为 Bla 的课程时 扩展 RootAction?

有人有任何指示,或者我可以找到一些像样的文档的地方吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

红尘作伴 2024-11-05 23:43:26

我看到人们使用我在此处找到的教程 为 Hudson 制作插件。 Jenkins 很久以前就没有分叉,所以它应该基本相同 - 你只需要考虑更改的存储库。

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.

你げ笑在眉眼 2024-11-05 23:43:26

有用的视频:

Helpful videos:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文