2

我有 gradle 项目,我添加了 findbugs 步骤。生成带有报告的 XML 文件,但我不知道如何使用管道插件在 jenkins 中显示结果。

我安装了 findbugs 插件,但我没有找到如何在管道脚本中使用它的说明。

如何在管道中使用 findbugs 插件或如何在管道中使用 findbugs 的文档在哪里?

4

1 回答 1

4

基于官方FindBugs 插件页面,最近发布的版本增加了对 Pipeline 作业的支持:

发布 4.62

Added support for workflow plug-in (Thanks to Antonio Muñiz and Manuel Recena for their PRs)
Fixed links in detail page of trend reports (JENKINS-29900)

您应该能够stepSnippet Generator中找到 FindBugs ,即:

step([$class: 'FindBugsPublisher ', ... ])
于 2016-05-05T05:01:25.363 回答