[cucumber-jvm] Jenkins integration issue after cucumber jvm 1.2.0 upgrade

112 views
Skip to first unread message

Chetan Dewangan

unread,
Dec 2, 2014, 5:16:49 PM12/2/14
to cu...@googlegroups.com
Hi All,

I had setup with cucumber jenkins using following component and it was working properly but I am getting issue as per below stack trace (Actually, the test case are running fine but it shows FAIL in jenkins status).

I have framework using:
1. cucumber-jvm
2. maven
3. appium
4. Jenkins

Stack trace:
Recording test results
ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
hudson.AbortException: None of the test reports contained any result
	at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:158)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
	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)
[CucumberReportPublisher] Compiling Cucumber Html Reports ...
[CucumberReportPublisher] copying all json files from: C:\tools\Jenkins\jobs\cucumber-appium-demo\workspace to reports directory: C:\tools\Jenkins\jobs\cucumber-appium-demo\builds\2014-12-02_12-00-43\cucumber-html-reports
[CucumberReportPublisher] Found the following number of json files: 2
[CucumberReportPublisher] 0. Found a json file: target\cucumber-report.json
[CucumberReportPublisher] 1. Found a json file: target\cucumber.json
[CucumberReportPublisher] Generating HTML reports
Finished: FAILURE

aslak hellesoy

unread,
Dec 2, 2014, 7:07:51 PM12/2/14
to Cucumber Users
On Tue, Dec 2, 2014 at 10:16 PM, Chetan Dewangan <chetan....@gmail.com> wrote:
Hi All,

I had setup with cucumber jenkins using following component and it was working properly but I am getting issue as per below stack trace (Actually, the test case are running fine but it shows FAIL in jenkins status).

I have framework using:
1. cucumber-jvm
2. maven
3. appium
4. Jenkins

Stack trace:
Recording test results
ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
hudson.AbortException: None of the test reports contained any result
Sounds like Hudson/Jenkins is unable to parse the JUnit XML produced by Cucumber's junit reporter. Can you show us what the XML file looks like? I don't think the junit formatter has changed in a while. What Cucumber version did you upgrade from?

Aslak
 
	at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:158)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
	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)
[CucumberReportPublisher] Compiling Cucumber Html Reports ...
[CucumberReportPublisher] copying all json files from: C:\tools\Jenkins\jobs\cucumber-appium-demo\workspace to reports directory: C:\tools\Jenkins\jobs\cucumber-appium-demo\builds\2014-12-02_12-00-43\cucumber-html-reports
[CucumberReportPublisher] Found the following number of json files: 2
[CucumberReportPublisher] 0. Found a json file: target\cucumber-report.json
[CucumberReportPublisher] 1. Found a json file: target\cucumber.json
[CucumberReportPublisher] Generating HTML reports
Finished: FAILURE

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages