0

FindBug Plugin我在竹子上有一些问题。我想尝试在竹子中使用 FindBug 插件。我的项目是从 SVN 存储库中获取的,并使用maven3. 我在默认作业问题中导入插件并在配置中设置杂项。

Bamboo 应该在哪里寻找 FindBugs 分析输出?

我将 FindBugs 输出目录设置为"c:\fb_report\"

您可以在添加的图像上看到什么

imageshack.us/photo/my-images/37/miscalleneous.png/

我建立他在控制台上写这个

 14-Nov-2011 10:38:11 Parsing test results...
14-Nov-2011 10:38:11 Finished task 'Maven 3.x'
14-Nov-2011 10:38:11 Running post build plugin 'NCover Results Collector'
14-Nov-2011 10:38:11 Running post build plugin 'Clover Results Collector'
14-Nov-2011 10:38:11 Running post build plugin 'Artifact Copier'
14-Nov-2011 10:38:11 Running post build plugin 'FindBugs Build Processor'
 14-Nov-2011 10:38:11 Running post build plugin 'Cleanup Build Processor'
14-Nov-2011 10:38:11 Finalising the build...
14-Nov-2011 10:38:11 Stopping timer.
14-Nov-2011 10:38:11 Build PROJECT1-PLAN-JOB1-1 completed.
14-Nov-2011 10:38:11 Running on server: post build plugin 'NCover Results Collector'
14-Nov-2011 10:38:11 Running on server: post build plugin 'Clover Delta Calculator'
14-Nov-2011 10:38:11 Running on server: post build plugin 'Build Hanging Detection Configuration'
14-Nov-2011 10:38:11 Running on server: post build plugin 'Maven Dependencies Postprocessor'
14-Nov-2011 10:38:11 Running on server: post build plugin 'FindBugs Server Build Processor'
 14-Nov-2011 10:38:11 All post build plugins have finished
14-Nov-2011 10:38:11 Generating build results summary...
14-Nov-2011 10:38:11 Saving build results to disk...
14-Nov-2011 10:38:11 Indexing build results...
14-Nov-2011 10:38:11 Finished building PROJECT1-PLAN-JOB1-1.

从这件事开始,插件已经在构建过程中成功运行。然后,如果我转到默认作业并单击选项卡 findbugs,他只向我显示一个图表,并且这里没有显示更多统计信息:

https://studio.plugins.atlassian.com/wiki/display/BFIND/FindBugs+Plugin

并且在 Miscellaneous 中为作业设置的目录为空。

imageshack.us/photo/my-images/402/findbugs.png/

我在大约 30 的更多版本上测试了这个插件。没有任何改变。我尝试在报告选项卡中生成报告,这也只显示一个图表。

imageshack.us/photo/my-images/607/reports.png/

我现在不做我做的坏事。

4

1 回答 1

2

生成 FindBugs 报告文件是您的计划责任。Bamboo FindBugs 插件只分析 FindBugs 报告文件中的数据。

尝试将此添加到您的 pom.xml:

<build>
  <plugins>
    ...
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>findbugs-maven-plugin</artifactId>
      <version>2.5</version>
      <configuration>
        <xmlOutput>true</xmlOutput>
        <xmlOutputDirectory>target/findbugs</xmlOutputDirectory>
      </configuration>
    </plugin>
    ...
  </plugins>
</build>

您还需要在findbugs:findbugsMaven 任务配置中添加目标。

请检查更新的插件文档- 它应该包含更多详细信息。

于 2012-09-19T21:18:17.713 回答