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:
parent
cb97a30f19
commit
1ee05a3cfa
4
pom.xml
4
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue