16 lines
483 B
Groovy
Raw Normal View History

2026-01-13 09:59:39 -03:00
import jenkins.model.Jenkins
import org.codefirst.SimpleThemeDecorator
def instance = Jenkins.get()
def decorators = instance.getExtensionList(SimpleThemeDecorator.class)
if (decorators?.size() > 0) {
def theme = decorators[0]
2026-01-20 17:43:23 -03:00
theme.setCssUrl("https://ci.bstein.dev/userContent/jenkins-theme.css")
2026-01-13 09:59:39 -03:00
theme.setJsUrl("")
instance.save()
println("Applied simple-theme-plugin dark theme")
} else {
println("simple-theme-plugin not installed; skipping theme configuration")
}