2011-11-21 73 views
0

我在竹中有FindBug Plugin一些问题。我想尝试在竹子中使用FindBug Plugin。我的项目从SVN存储库中获得,并使用maven3构建。我在默认作业问题中导入插件并在配置中设置杂项。竹FindBug插件不显示统计

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

和目录在杂项设置工作是空的。

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

我测试这个插件更多关于建立和30.没有什么改变。我试着在报告标签中生成报告,这也只给我看一张图。

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

我不知道现在是什么我做不好的。

回答

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:findbugs目标添加到您的Maven的任务配置。

请检查更新plugin documentation - 它应该包含更详细的信息。