-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Windows Server 2008 R2 x64
Jenkins 1.588
Cucumber json test reporting plugin 0.8.2
When scenario name contains 'less than' (<) or 'greater than' (>) character and a file (a sceenshot with sanitized (\W to _) path) is embedded into a json report, the plugin throws FileNotFoundException when trying to parse such json report with embedded file.
Archiving artifacts [Cucumber Tests] Parsing results. [Cucumber Tests] parsing salai.test.merlin.json ERROR: Failed to archive cucumber reports java.io.IOException: Failed to copy C:\Windows\TEMP\cuke_7445626561105425964.embed to c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed at hudson.FilePath.copyTo(FilePath.java:1978) at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:136) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.FileNotFoundException: c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at hudson.FilePath.write(FilePath.java:1867) at hudson.FilePath.copyTo(FilePath.java:1971) ... 10 more