Customising Jenkins' appearance to make it easier to tell instances apart

前端 未结 4 1944
南笙
南笙 2021-01-01 12:52

I am responsible for four different Jenkins installations - two test and two production servers.

What options do I have from within Jenkins to make it more obvious w

相关标签:
4条回答
  • 2021-01-01 13:06

    I think the simplest way to do this is with the Simple Theme Plugin.

    A plugin for Jenkins that supports custom CSS & JavaScript.

    You can make your own simple css and/or javascript, point to the file in the configuration and you're done. Or you can use existing css from the internet.

    0 讨论(0)
  • 2021-01-01 13:08

    In addition to or instead of the Simple Theme Plugin proposed by @Illidanek, you might also try the jQuery Plugin.

    This plugin is a library plugin for other plugins to share common jQuery. It also allows users to use jQuery on each view descriptions.

    It doesn't completely match your requirements, but it might be useful to add jQuery snippets for special formatting/styling/html-manipulation in the Jenkins "System Message", in view descriptions or in job descriptions.

    I personally often prefer the Simple Theme Plugin.

    0 讨论(0)
  • 2021-01-01 13:22

    Another possibility would be to use tools like Greasemonkey (Firefox) or a similar built in ability with in Chrome (http://www.chromium.org/developers/design-documents/user-scripts) to have JavaScript code alter the appearance of the page. You'd get a lot of flexibility and could potentially go so far as to prohibit certain commands from executing or enforce additional restrictions when executing certain commands on the production servers.

    0 讨论(0)
  • 2021-01-01 13:23

    obsolete as of 2017

    Try the Page Markup Plugin.

    Adds custom HTML content to header & footer on all Hudson pages. Use this plugin to add your own custom content (e.g. CSS, site headers, and site footers) to Hudson pages.

    I haven't used this plugin myself, but you should be able to override the default CSS styles to insert your own header text or image.

    Alternatively, you can edit the CSS / images yourself in JENKINS_HOME/war/css and JENKINS_HOME/war/images, but I don't recommend that since you'll probably lose any customizations when you upgrade.

    0 讨论(0)
提交回复
热议问题