我创建了一个新的Maven- Jenkins项目(Jenkins在Linux服务器上运行),并安装了Cucumber report插件和HTML publish插件,其中包含以下选项: -HTML发布-> https://www.screencast.com/t/oh0Z5gB7Mpp -黄瓜报告-> https://www.screencast.com/t/x1Gu1y2coga9
但是每次我的Jenkins构建完成时,我都会看到此错误:
net.masterthought.cucumber.ValidationException: None report file was added! at net.masterthought.cucumber.ReportParser.parseJsonFiles(ReportParser.java:60) at net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:88) at net.masterthought.jenkins.CucumberReportPublisher.generateReport(CucumberReportPublisher.java:324) at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:248) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1841) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
有人可以帮我吗?我究竟做错了什么 ? :(
先谢谢了。 玛丽
答案 0 :(得分:0)
Jenkins在每次构建后都会删除工作空间。您应该使用“导出报告”插件导出生成的报告。在https://wiki.jenkins.io/display/JENKINS/Export+Report
上参阅有关导出报告插件的更多信息。