-
Task
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 2.277.2 , HTML Publish plugin, Selenium, TestNg
CSS and images are not loading if I switch from http to https Jenkins. My jenkins startup script looks like :-
https -->jenkinsStartup.bat (CSS/images does not load properly in Jenkins extent Report for below case -->
java -Dhudson.model.DirectoryBrowserSupport.CSP="" -jar "C:\JenkinsWar\jenkins.war" --httpsPort=443 --httpPort=-1 --httpsKeyStore="C:\JenkinsWar\cert\wildcard_domainname_com.jks" --httpsKeyStorePassword=XXXYYYYZZZZ
http >jenkinsStartup.bat (CSS load properly in Jenkins extent Report for below case>
java -Dhudson.model.DirectoryBrowserSupport.CSP="" -jar "C:\JenkinsWar\jenkins.war" --httpsPort=80
Please help.
Br , Ashwnikumar
- blocks
-
JENKINS-38663 HTML viewer is broken in version:1.629
-
- Closed
-
-
JENKINS-32590 Inline CSS is ignored in published HTML reports
-
- Closed
-
This was my own induced problem, realised next morning post raising this issue. CSS was not loading because my Extent Report config xml (extent-config.xml) was still using http protocol , so to make CSS work for html publisher i had to adjust the code from http to https where ever i had reference in my eclipse project.
Realised this only after seeing Mixed Content error in browser–>
Mixed Content: The page at 'https://jenkinsmaster.domainname.com/view/TestingServices/job-HealthCheckTest/HTML_20Report/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600'. This request has been blocked; the content must be served over HTTPS.
Thanks , Br Ashwinikumar