Search code examples
jenkinscucumberjenkins-pipelinejenkins-plugins

How to make Jenkins Blue Ocean UI display a link to Cucumber Reports?


I have a Jenkins pipeline that uses the Cucumber Reports plugin. I integrated Jenkins with GitLab.

In GitLab, I can see if a specific commit passed the tests, and clicking on an icon I go to the pipeline that tested it. The Blue Ocean interface is displayed.

The problem is that I can't have a link from the Blue Ocean interface to my Cucumber Reports. I enter the classic interface and then click on the Cucumber reports link in the left column.

My end user is editing the tests and I'd like to spare them the understanding of Jenkins' inconsistent user interfaces.

Is it possible to put a link to the report from the Blue Ocean interface?


Solution

  • I couldn't do it till now. My solution was to print it with a echo command in the last stage of the pipeline:

    echo "CUCUMBER tests report: ${BUILD_URL}cucumber-html-reports/overview-features.html"
    

    Blue Ocean automatically makes the URL clickable. Nothing fancy, but it works.