Cucumber reporting graphs not showing

781 views
Skip to first unread message

donovan.b...@gmail.com

unread,
Dec 16, 2015, 6:13:16 AM12/16/15
to Jenkins Users
Hi, We have created a job which succeeds and creates a cucumber-html-reports directory on the master. When locally accessing these files the graphs display perfectly.

However, if I click on Cucumber Reports in Jenkins, the graphs do not show and the graphics around the statistics table do not show. If I view it in Chrome, it only displays HTML text and no graphics whatsoever.

As i say, the HTML files are fine if you access them locally so its just not rendering it if called from within Jenkins.

Please help!

Brian Ray

unread,
Dec 16, 2015, 11:47:14 AM12/16/15
to Jenkins Users
Which release of the Jenkins master are you running? The most recent versions of the release and LTS release introduced this security feature that, by default, disables most inline and non-domain scripting, CSS, etc when viewed in most up to date browsers.

With respect to Cucumber Reports, that generally means the animated pie charts at the top of the report are suppressed, as well as column sorting, some styling, etc., depending on the browser used.

donovan.b...@gmail.com

unread,
Dec 17, 2015, 7:09:39 AM12/17/15
to Jenkins Users
This works great now thanks! Our version of Jenkins is 1.642 so is affected by the new security features which did indeed break Cucumber Reports.

For clarification for others, i edited /etc/sysconfig/jenkins and added -Dhudson.model.DirectoryBrowserSupport.CSP= to JENKINS_JAVA_OPTIONS to get around the restrictions.

Brian Ray

unread,
Dec 17, 2015, 12:15:01 PM12/17/15
to Jenkins Users
Awesome. We've opened up that filter a bit to accomodate some CSS and column sort scripting with the Cucumber Reports pages, but still have Flash content blocked. So no bouncing pie charts for us for the time being.

Segun Olaifa

unread,
Jan 4, 2016, 4:21:09 AM1/4/16
to Jenkins Users
Hi Donovan,

I am having the same problem and my Jenkins version is 1.588.  Kindly help


Regards
Reply all
Reply to author
Forward
0 new messages