Thanks for your reply.  I have problems accessing this repository through 
git.  When I clone it, it says I'm cloning an empty repository although I 
do see a readme.txt in it.  Any ideas?

On Tuesday, August 29, 2017 at 10:42:57 AM UTC-4, Reinhold Fuereder wrote:
>
> Hi Hung,
>
>  
>
> You can use so-called Jenkins User Content: see 
> https://wiki.jenkins-ci.org/display/JENKINS/User+Content for details.
>
>  
>
> E.g. I am using that for web resources in HTML Emails sent from Jenkins: I 
> am provisioning/deploying "file.png" via Ansible to "<path to jenkins home 
> folder, typically '/var/lib/jenkins'>/userContent". It is then accessible 
> via: https://<jenkins URL>/userContent/diff.png
>
>  
>
> HTH Reinhold
>
>  
>
>  
>
> *Von:* jenkins...@googlegroups.com <javascript:> [mailto:
> jenkins...@googlegroups.com <javascript:>] *Im Auftrag von *Hung L.
> *Gesendet:* Dienstag, 29. August 2017 15:54
> *An:* Jenkins Users
> *Betreff:* Using CSS in html published on Jenkins build
>
>  
>
> Hi,
>
> I have a question on using CSS styles in html file that is being published 
> on Jenkins build.  After each build, we publish a summary html file on 
> Jenkins dashboard using the "Publish HTML Reports" plugin.  Our HTML has 
> reference to some CSS.  Right now, we're using inline CSS but Jenkins does 
> not allow inline CSS by default, see 
> https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy. 
>  I am able to override the default settings to allow the inline CSS, but 
> I'm not sure if that's the right thing to do.  
>
>  
>
> Right now, I'm looking for an alternative.  I know Jenkins has some 
> built-in CSS files which I hope to make a reference from our html. 
>  However, I don't know how to do it as they are referenced by a random link 
> (I think), for example:
>
> <link rel="stylesheet" href="/static/xxxxxx/css/layout-common.css" 
> type="text/css" />  where xxxxxx is random.  
>
>  
>
> An another alternative is to publish my own CSS file somewhere on Jenkins 
> server and make a reference to that.  However, I'm not sure how to do that.
>
>  
>
> Any suggestions?  Thanks.
>
> -- 
> 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-use...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/2b892ec2-9f0f-4866-855c-d6fc546a8ad4%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/2b892ec2-9f0f-4866-855c-d6fc546a8ad4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/71af9a8d-8bc0-4a5d-9726-ba7474302cf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to