jenkins-material-theme icon indicating copy to clipboard operation
jenkins-material-theme copied to clipboard

THeme usage without internet Access.

Open thcp opened this issue 6 years ago • 5 comments

Currently it's possible to use this theme on a jenkins server on a secure network without internet connection?

thcp avatar Mar 02 '18 17:03 thcp

@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 avatar Mar 02 '18 20:03 externl

@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:

2018-05-05-175147_469x485_scrot

thcp avatar May 05 '18 15:05 thcp

@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.

umara123 avatar Feb 11 '19 15:02 umara123

worked perfectly as a workaround!

thcp avatar Feb 11 '19 19:02 thcp

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.

linkeal avatar Dec 13 '19 12:12 linkeal