Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

Plugin Information

View Cucumber reports on the plugin site for more information.

Older versions of this plugin may not be safe to use. Please review the following warnings before using an older version:

Publish pretty cucumber reports

This is a Java Jenkins plugin which publishes pretty html reports showing the results of cucumber runs.


Visit project website to check how can you configure the plugin and how powerful it is.



  1. Unknown User (gurvan_ld)

  2. Unknown User (udayanem)


    This plug-in works very well with Jenkins.

    By chance, is there way to have API for this?

    When we run automation suite, it generate cucumber.json.

    Do we have API which converts 'cucumber.json' to Cucumber reports?

    API's are great way to help in this regard.



  3. Unknown User (biagiolampo)


       it would be really useful to have the trend for feature duration.

       At least to have some API to retrieve the trend for each interested feature/scenario.

       This could help to have a benchmarking among the builds and following the evolution of the product under test.



  4. Unknown User (avirosenfeld)

    Is there a way to compare between Test Results between two Tests executions using this plugin?

  5. Unknown User (mkp007)

    I am using this plugin in my Jenkins pipeline. It works like a charm for the successful test run scenarios.

    But whenever there is a failure scenario, no report is generated. Is this a bug or a configuration issue ?

    My pipeline code snippet is as follows --


    step([$class: 'CucumberReportPublisher', jsonReportDirectory: "./Build/temp/", jenkinsBasePath: '', fileIncludePattern: 'reports.json'])
  6. Unknown User (kkumar17)

    Hi, Could anyone please tell me how "Number of pending steps" field works? our requirement is , we need the over all status to be passed when report has Pending status. Please suggest.

    I have tried giving 9999 as the "Number of pending steps" and I have 7 pending steps in my scenario, but still the over all status is showing as Failed.

  7. Unknown User (rahulk)

    This plugin works well for my execution. However, I am unable to view screenshots. I have in my code 

    public void tearDown(Scenario scenario) {
    if (scenario.isFailed()) {
    scenario.embed(driver.getScreenshotAs(OutputType.BYTES), "image/png");


    when a scenario fails, this code captures the screenshot and attaches to cucumber report when executed on local machine. 

    When I use the plugin to execute on jenkins, i do not know how or where to configure so that i can view screenshots.

    1. Unknown User (rbok78)

      Hi Rahul, you can check the issue https://github.com/cucumber/cucumber-jvm/issues/1235 as it seems to be the same one that you described.

      1. Unknown User (rahulk)

        it seems so. I am on vacation right now. I will check if the solution now applies.

      2. Unknown User (rahulk)

        Sorry for late response.. was not on that long of vacation. (smile) Its not the same issue. 

    2. Unknown User (leonkatz)

      public void afterScenario(Scenario scenario) {
      String browser = System.getProperty("selenium.browser");
       LOGGER.debug("***** Executing After Scenario for " + scenario.getName() + " *****");
      if (driver != null) {
      if (scenario.isFailed()) {
       scenario.embed(driver.getScreenshot(), "image/png");



      Works for me.

      1. Unknown User (sabareeshv03)

        Hi Unknown User (leonkatz)

        I use the similar code in Katalon Studio for screen shots with the @After tag . But when  the code runs in the local machine it works fine where as when it runs in the Jenkins server it does not enter into the @After tag itself.  Could you please help me regarding this,

        Its really important for me to accomplish it with the Jenkins report.


        Code is : 

        def public void endTest(Scenario scenario){

        println "####### Entered to take Screenshot ############3"
        WebDriver driver = DriverFactory.getWebDriver()
        println "############ Entered if before screenshot ############"
        Screenshot fpScreenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000))

        BufferedImage originalImage = fpScreenshot.getImage();

        ByteArrayOutputStream baos = new ByteArrayOutputStream()
        ImageIO.write(originalImage, "png", baos);


        println "Before Embed"
        scenario.embed(baos.toByteArray(), "image/png")

        println "After Embed"

        1. Unknown User (sabareeshv03)

          Unknown User (rahulk)

           If u have got the solution for the same , can u help me bcoz i see u have also posted the same issue which i am facing.  It works fine in my local machine where as in the Jenkins it does not take the screen shot as it does not enter the @After method itself.   

          Can you please do help me on this


  8. Unknown User (aravinder111)

    Can any authors of the plugin fix this ASAP, I'm facing this issue a lot of times. https://github.com/jenkinsci/cucumber-reports-plugin/issues/213

  9. Unknown User (samar_23)

    I have few Cucumber reports generated in Jenkins version 1.5 with older Cucumber report plug in. IS there any option to migrate those reports to new Jenkins 2.121 onward?