2011-11-21 70 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 - 它應該包含更詳細的信息。