1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Jenkins Green Balls Plugin Support

Adds support for a 'greenBalls' boolean parameter in the config file which overrides the default value of "blue" with "green".
This commit is contained in:
Jack Morris 2019-04-15 12:06:37 +01:00 committed by GitHub
parent 7385dd82d9
commit db7e4b960c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,12 @@ func (widget *Widget) rowColor(idx int) string {
func (widget *Widget) jobColor(job *Job) string { func (widget *Widget) jobColor(job *Job) string {
switch job.Color { switch job.Color {
case "blue": case "blue":
// Override color if greenBalls boolean param provided in config
if wtf.Config.UString("wtf.mods.jenkins.greenBalls") == "true" {
return "green"
} else {
return "blue" return "blue"
}
case "red": case "red":
return "red" return "red"
default: default: