Jenkins modify theme style

Installation method 1

Jenkins=>Plugin Management=>Optional Plugins
Search for Theme and
choose Simple Theme to install directly
Insert picture description here
Insert picture description here

Installation method 2

Compare the plugin https://plugins.jenkins.io/
Download the plugin manually http://updates.jenkins-ci.org/download/plugins/
enter
ctrl+f search for simple-theme-plugin
Insert picture description here
Insert picture description here

Use theme plugins

Enter
System Management>Global Security Configuration>Mark Formatter>Set as Safe HTML
System Management>System Configuration>Theme>Theme element (Add CSS URL) and
fill in the style link
Mine is blue
http://afonsof.com/jenkins-
Save material-theme/dist/material-blue.css and you can see the effect.
Insert picture description here
Pipeline installation
Search workflow-aggregator
Insert picture description here
Insert picture description here

Solution to error when pipeline script contains function method in groovy

  1. Add plugin, Permissive Script Security, add -Dpermissive-script-security.enabled=true when starting jenkins
  2. "Manage Jenkins" -> "In-process Script Approval" and click approval (or directly add in scriptApproval.xml in the root directory, and restart jenkins after adding)
  3. Don't use Groovy scripts

Guess you like

Origin blog.csdn.net/chen_cxl/article/details/109353087