2

I am generating reports using protractor-multiple-cucumber-html-reporter-plugin in my local system and it is perfectly working.But when i am running this protractor script using Jenkins, I am not able to generate same report there using HTML Publisher plugin.The generated report looks like a broken one.Its not displaying the images and not navigating when clicking on links.I am using Chrome version of 75, Java with jdk1.8.0_201, Jenkins of version 2.263.4 and Html plugin of version 1.25.I have tried below code, but none of them worked for me.

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "*");

i am able to disabled the protection.But still report is not fully loading for me. The actual report is look like enter image description here

But in Jenkins, after disabling the protection,it look likeenter image description here

Can anyone help me? Thanks in Advance.

Devleena
  • 453
  • 9
  • 25

2 Answers2

0

Try to install this plugin https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden?hl=en

Make sure to enable it after you're on the report page, and then reload the page. If this works, I'll explain what happened and what else you can do to permanently fix it

Sergey Pleshakov
  • 7,964
  • 2
  • 17
  • 40
0

We need to add all files(css,js etc) while configuring the HTML publisher plugin, as like belowenter image description here

or else we need to keep the 'include files' field as empty. so that it will take all associate files. And then we need to disable the protection by this link

so that we will get actual report.

Devleena
  • 453
  • 9
  • 25