Updated version to match newest cucumber-report.

Moved ReportBuilder constructor into try-catch because it now throws an Exception.
ReportBuilder constructor takes two new parameters that I'm not sure are relevant to our needs; disabling artifacts and passing in empty config.
This commit is contained in:
Chris Kozak 2012-10-08 16:29:42 -05:00 committed by tworker
parent cb97a30f19
commit 1ee05a3cfa
2 changed files with 14 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<groupId>net.masterthought.jenkins</groupId>
<artifactId>cucumber-reports</artifactId>
<version>0.0.14</version>
<version>0.0.18</version>
<packaging>hpi</packaging>
<scm>
@ -42,7 +42,7 @@
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<version>0.0.14-SNAPSHOT</version>
<version>0.0.18-SNAPSHOT</version>
</dependency>
</dependencies>

View File

@ -95,9 +95,20 @@ public class CucumberReportPublisher extends Recorder {
String[] jsonReportFiles = findJsonFiles(targetBuildDirectory);
if (jsonReportFiles.length != 0) {
listener.getLogger().println("[CucumberReportPublisher] Generating HTML reports");
ReportBuilder reportBuilder = new ReportBuilder(fullPathToJsonFiles(jsonReportFiles, targetBuildDirectory), targetBuildDirectory, pluginUrlPath, buildNumber, buildProject, skippedFails, undefinedFails, !noFlashCharts, true);
try {
ReportBuilder reportBuilder = new ReportBuilder(
fullPathToJsonFiles(jsonReportFiles, targetBuildDirectory),
targetBuildDirectory,
pluginUrlPath,
buildNumber,
buildProject,
skippedFails,
undefinedFails,
!noFlashCharts,
true,
false,
"");
reportBuilder.generateReports();
buildResult = reportBuilder.getBuildStatus();
} catch (Exception e) {