【问题标题】:New RSS Feeds fields in JenkinsJenkins 中的新 RSS 提要字段
【发布时间】:2014-08-27 14:08:35
【问题描述】:

我想要 jenkins 当前提供的 rss 提要中的额外字段。
我需要将构建时间字段添加到 rss 提要中。有插件还是没有插件也可以?
目前的条目是这样的。

<entry>
    <title>trunk-build #66 (stable)</title>
    <link type="text/html" href="xyz/66532/" rel="alternate"/>
    <published>2014-08-27T10:14:31Z</published>
    <updated>2014-08-27T10:14:31Z</updated>
    <content>trunk.ci.1143</content>
</entry>

我想将构建的持续时间&lt;duration&gt;15&lt;/duration&gt; 添加到此条目。

【问题讨论】:

  • 目前无法在 Jenkins 核心中的任何插件中向提要添加字段。但是有一个ancient bug report

标签: jenkins rss jenkins-plugins


【解决方案1】:

很抱歉恢复这个,但我也有兴趣找到一种方法将信息从构建公开到 php 网站,所以要么扩展 rss,要么可能有一个提供 api 的插件。我想显示构建属性 - 用于运行作业。

过了一会儿,我发现 Jenkins 提供了一个API。我能够通过我找到的here 的 php 实现来实现结果。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-22
    • 1970-01-01
    相关资源
    最近更新 更多