Open thcp opened 6 years ago
@tchp I haven't tried this but I think copying and pasting all of https://cdn.rawgit.com/afonsof/jenkins-material-theme/gh-pages/dist/material-{{your-color-name}}.css
into the Extra CSS
settings might work for you (IIRC it's available in the latest version of the theme plugin).
@externl
It seems it doesn't work on a server that is on a secure zone. I currently made it work partially by downloading Roboto and Roboto-Mono and importing locally by changing the following imports from:
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300); @import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);
to
@import url(Roboto-Mono.css); @import url(Roboto.css);
The only problem that I have currently are the icons that doesn't display properly:
@thcp You could create a job on the same jenkins instance to save the theme.css
as an artifact.
Then in the Jenkins theme config just put in the URL of that artifact. I've tested this and it works.
worked perfectly as a workaround!
Your comments helped me a lot. Thank you! What I've additionally done is to use the https://google-webfonts-helper.herokuapp.com/fonts to host all the fonts as artifact in the "/userContent/layout" folder in Jenkins as well. This way the design is completely self hosted.
Currently it's possible to use this theme on a jenkins server on a secure network without internet connection?