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:
commit
54201a2075
@ -120,7 +120,13 @@ 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":
|
||||||
return "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":
|
case "red":
|
||||||
return "red"
|
return "red"
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user