【问题标题】:How to publish findbugs report in jenkins using pipeline plugin?如何使用管道插件在 jenkins 中发布 findbugs 报告?
【发布时间】:2016-05-04 13:30:13
【问题描述】:

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

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

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

【问题讨论】:

    标签: jenkins findbugs jenkins-workflow jenkins-pipeline


    【解决方案1】:

    基于官方FindBugs Plugin 页面最近发布添加了对管道作业的支持:

    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)
    

    你应该可以在Snippet Generator中找到FindBugsstep,即:

    step([$class: 'FindBugsPublisher ', ... ])
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-06-23
      • 1970-01-01
      • 2018-09-13
      • 2017-12-21
      • 2018-12-06
      • 1970-01-01
      • 2018-05-14
      相关资源
      最近更新 更多