# Reporting in Jenkins for the Ruby/Cucumber Stack - SOLVED

**URL:** <https://discuss.appium.io/t/reporting-in-jenkins-for-the-ruby-cucumber-stack-solved/5623>\
**Category:** Support\
**Created:** [August 14, 2015, 5:37pm UTC](https://discuss.appium.io/t/reporting-in-jenkins-for-the-ruby-cucumber-stack-solved/5623 "2015-08-14T17:37:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shermaneric](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@shermaneric](https://discuss.appium.io/u/shermaneric)\
**Post date:** [August 14, 2015, 5:37pm UTC](https://discuss.appium.io/t/reporting-in-jenkins-for-the-ruby-cucumber-stack-solved/5623/1 "2015-08-14T17:37:54Z")

</div>

Hey there,  
I know I just posted on a different topic just earlier.  
We’re switching to running everything (App builds under test, automation test runs) to Jenkins.

I have everything running pretty well there, and I even make use of the default html reporting in the cucumber.yml file.

**Goal** : I’d like to investigate if Jenkins has any cucumber ruby plugins that I can leverage so I could have the reports immediately available within the jenkins job after the test run completes.

The cucumber\_test\_report plugin I saw looked promising. However, it looked more for the cucumber\_jvm framework, not cucumber ruby.

Any help much appreciated.  
Thanks!

---

<div class="post-metadata">

**Author:** ![sreeram\_thinkal](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@sreeram\_thinkal](https://discuss.appium.io/u/sreeram_thinkal)\
**Post date:** [August 17, 2015, 1:41pm UTC](https://discuss.appium.io/t/reporting-in-jenkins-for-the-ruby-cucumber-stack-solved/5623/2 "2015-08-17T13:41:52Z")

</div>

You could get the cucumber report generated as a json using “–format json” and then have the plugin create the fancy report for you. Hope this helps.

---

<div class="post-metadata">

**Author:** ![shermaneric](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@shermaneric](https://discuss.appium.io/u/shermaneric)\
**Post date:** [August 17, 2015, 7:49pm UTC](https://discuss.appium.io/t/reporting-in-jenkins-for-the-ruby-cucumber-stack-solved/5623/3 "2015-08-17T19:49:03Z")

</div>

Thanks Sreeram, that does help!  
I tried the Cucumber Test Report plugin alongside the --format json but for some reason I had trouble with jenkins reading that out.

I reverted to an acceptable approach - albeit with several other steps.

1. I stay with the --format html and generate an html file.
2. In the jenkins job itself, I have a previous set of steps that puts the name of the HTML file in #1 as an environment variable (I call it LOG\_FILE)
3. Then I execute rake to start appium cucumber.
4. Then I have a post build action to publish the HTML report. It prints a nice page right inside the job and at the project summary.  
I needed 2 plugins:  
Environment Injector  
HTML Publisher

Probably more steps than the --format json, but I got things working.  
Thanks for your help!

---

<div class="post-metadata">

**Author:** ![navneedhdev](https://discuss.appium.io/letter_avatar_proxy/v4/letter/n/b3f665/32.png) [@navneedhdev](https://discuss.appium.io/u/navneedhdev)\
**Post date:** [October 13, 2017, 4:46am UTC](https://discuss.appium.io/t/reporting-in-jenkins-for-the-ruby-cucumber-stack-solved/5623/4 "2017-10-13T04:46:18Z")

</div>

@shermaneric Can you please share the steps for implementing it. Currently I am generating the html report through Html runner. Now I just want to publish the report as part of the builds. Your help would be much appreciated!

Thanks!
