0

FindBug Plugin私は竹でいくつかの問題を抱えています。Bamboo で FindBug Plugin を使用してみたいと思います。私のプロジェクトは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をクリックすると、グラフが1つだけ表示され、ここに表示されるような統計は何も表示されません:

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

ジョブのその他に設定されたディレクトリが空です。

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

約 30 のビルドでこのプラグインをテストしましたが、何も変更されませんでした。そして、レポートタブでレポートを生成しようとしましたが、これもグラフが1つしか表示されません。

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

私は今、私が悪いことをしていません。

4

1 に答える 1

2

FindBugs レポート ファイルを生成するのは Plan の責任です。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 タスク構成にゴールを追加する必要があります。

更新されたプラグインのドキュメントを確認してください- これに関するより詳細な情報が含まれているはずです。

于 2012-09-19T21:18:17.713 に答える