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

Merge pull request #403 from rudolphjacksonm/patch-1

Jenkins Green Balls Plugin Support - #358
This commit is contained in:
Chris Cummer 2019-04-15 09:48:09 -07:00 committed by GitHub
commit 54201a2075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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