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>
|
<groupId>net.masterthought.jenkins</groupId>
|
||||||
<artifactId>cucumber-reports</artifactId>
|
<artifactId>cucumber-reports</artifactId>
|
||||||
<version>0.0.14</version>
|
<version>0.0.18</version>
|
||||||
<packaging>hpi</packaging>
|
<packaging>hpi</packaging>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.masterthought</groupId>
|
<groupId>net.masterthought</groupId>
|
||||||
<artifactId>cucumber-reporting</artifactId>
|
<artifactId>cucumber-reporting</artifactId>
|
||||||
<version>0.0.14-SNAPSHOT</version>
|
<version>0.0.18-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -95,9 +95,20 @@ public class CucumberReportPublisher extends Recorder {
|
||||||
String[] jsonReportFiles = findJsonFiles(targetBuildDirectory);
|
String[] jsonReportFiles = findJsonFiles(targetBuildDirectory);
|
||||||
if (jsonReportFiles.length != 0) {
|
if (jsonReportFiles.length != 0) {
|
||||||
listener.getLogger().println("[CucumberReportPublisher] Generating HTML reports");
|
listener.getLogger().println("[CucumberReportPublisher] Generating HTML reports");
|
||||||
ReportBuilder reportBuilder = new ReportBuilder(fullPathToJsonFiles(jsonReportFiles, targetBuildDirectory), targetBuildDirectory, pluginUrlPath, buildNumber, buildProject, skippedFails, undefinedFails, !noFlashCharts, true);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
ReportBuilder reportBuilder = new ReportBuilder(
|
||||||
|
fullPathToJsonFiles(jsonReportFiles, targetBuildDirectory),
|
||||||
|
targetBuildDirectory,
|
||||||
|
pluginUrlPath,
|
||||||
|
buildNumber,
|
||||||
|
buildProject,
|
||||||
|
skippedFails,
|
||||||
|
undefinedFails,
|
||||||
|
!noFlashCharts,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
"");
|
||||||
reportBuilder.generateReports();
|
reportBuilder.generateReports();
|
||||||
buildResult = reportBuilder.getBuildStatus();
|
buildResult = reportBuilder.getBuildStatus();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue