Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins simple theme plugin examples or tutorial

I installed the Simple Theme plugin on my Jenkins instance, and I managed to do some (very) basic theme changes.

Does anyone have a better reference to the Jenkins theme?

The plugin page is very low on info...

If I want to override a style attribute, I have to dig into the generated html and do a lot of experimenting.

like image 889
Eldad Assis Avatar asked May 09 '12 08:05

Eldad Assis


People also ask

Which is an example of a Jenkins plugin?

JUnit Plugin The most common types of build in Jenkins are the ones that test the application. By default, Jenkins can run JUnit tests and it provides you with the test results. If you want to get more insight into the test trends, you will need this plugin.


2 Answers

You can customize your known simple theme with .css file. Make sure that you have .png logo image, I have added 'Jenkins_home/usercontent/mytheme.css' file 'Jenkins_home/usercontent/logo.png' as my logo. and follow the css below:

@charset “utf-8”;
    #header .logo { 
        height: 36px;
    } 
    /* Custom style for my Jenkins Platform */
    .logo {
        background: url(/userContent/logo.png) no-repeat 10px center; 
    }

    .logo img { 
        display: none; 
    }

    .logo:after {
        content: 'Jenkins my instance';
        font-weight: bold;
        white-space: nowrap;
    } // Content after logo

Just check in Jenkins Configuration theme must be CSS URL and you must add path of above 'mytheme.css' file. & Refresh your Jenkins Page.

like image 197
np2807 Avatar answered Sep 23 '22 14:09

np2807


Found a simple tutorial here for start:

http://www.techgaun.com/2013/06/customizing-jenkins-layout.html

like image 44
harish Avatar answered Sep 23 '22 14:09

harish