2017-07-16 5 views
3

私は古いJenkinsビルドを宣言的パイプラインに移行しています。私たちは、うまくユニットテストを公開するのxUnitプラグインを使用するとJUnitのために、次の作品:JenkinsパイプラインとxUnitプラグインでBoostユニットテストを公開するには

step([$class: 'XUnitBuilder', 
     thresholds: [[$class: 'FailedThreshold', unstableThreshold: '1']], 
     tools: [[$class: 'JUnitType', pattern: '**/surefire-reports/*.xml'], 
       [$class: 'JUnitType', pattern: '**/generatedJUnitFiles/JUnit/*.xml'],] 
    ]) 

私の問題は、私は私たちのブーストのテストを公開する方法を見つけ出すことができないということです。 BoostTypeJUnitTypeに似ていますか、またはブーストテストがまだサポートされていませんか?

答えて

4

答えはBoostTestJunitHudsonTestTypeであることが判明しました。これはコードです:

step([$class: 'XUnitBuilder', 
      thresholds: [[$class: 'FailedThreshold', unstableThreshold: '1']], 
      tools: [[$class: 'JUnitType', pattern: '**/surefire-reports/*.xml'], 
        [$class: 'JUnitType', pattern: '**/generatedJUnitFiles/JUnit/*.xml'], 
        [$class: 'BoostTestJunitHudsonTestType', pattern: '**/*_results.xml'], 
        ]]) 
+0

この 'step()'コマンドとその構文について説明しているドキュメントを参照するのに十分親切でしょうか?私は何も見つけていない。 – DBedrenko

2

ジェンキンスのxUnit PluginにクラスBoostTestがあります。

+1

ありがとうございました。実際にはBoostTestJunitHudsonTestTypeです。 – user3029642

関連する問題