Hi Jochen & Christoph 

Be careful: CSS is stripped out because of the Content Security Policy in 
Jenkins. 
See [ 
https://www.jenkins.io/doc/book/security/configuring-content-security-policy/ | 
https://www.jenkins.io/doc/book/security/configuring-content-security-policy/ ] 
(and also [ 
https://stackoverflow.com/questions/35783964/jenkins-html-publisher-plugin-no-css-is-displayed-when-report-is-viewed-in-j
 | 
https://stackoverflow.com/questions/35783964/jenkins-html-publisher-plugin-no-css-is-displayed-when-report-is-viewed-in-j
 ] ) 

BR, 
Xavier 


From: "'christop...@googlemail.com' via Jenkins Users" 
<jenkinsci-users@googlegroups.com> 
To: "Jenkins Users" <jenkinsci-users@googlegroups.com> 
Sent: Friday, January 13, 2023 3:51:12 PM 
Subject: Re: HTML pages as archived artifacts 

Hi Jochen, 

one of my jobs generates a html-report as output from source code documentation 
(doxygen). Instead of archiving I hand the html over to publishHTML. Therefore 
displaying from the job works perfectly. I did not care for downloading the 
html though so you might need to do both. 

BR, 
Christoph 

jochen....@gmail.com schrieb am Freitag, 13. Januar 2023 um 14:37:42 UTC+1: 



Hi, 

one of my build jobs is creating a few reports (HTML pages), that are being 
archived as artifacts. 

The created pages appear to be perfectly fine: If I download, and open them, 
then thy look exactly as expected. 

Unfortunately, they don't look the same, if I view them within Jenkins by 
clicking on the respective artifact. I'm not enough of a web developer to tell, 
what's wrong, exactly, but the problem appears to be in the gray area of CSS / 
JavaScript. 

Any ideas, what might be wrong, or suggestion, what I might do different? 

Thanks, 

Jochen 





-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group. 
To unsubscribe from this group and stop receiving emails from it, send an email 
to [ mailto:jenkinsci-users+unsubscr...@googlegroups.com | 
jenkinsci-users+unsubscr...@googlegroups.com ] . 
To view this discussion on the web visit [ 
https://groups.google.com/d/msgid/jenkinsci-users/644f1840-3307-4c18-98c6-e088d87b361fn%40googlegroups.com?utm_medium=email&utm_source=footer
 | 
https://groups.google.com/d/msgid/jenkinsci-users/644f1840-3307-4c18-98c6-e088d87b361fn%40googlegroups.com
 ] . 


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1128936174.1991087.1673623365796.JavaMail.zimbra%40kalray.eu.

Reply via email to