Skip to content

Commit

Permalink
Merge pull request #403 from rudolphjacksonm/patch-1
Browse files Browse the repository at this point in the history
Jenkins Green Balls Plugin Support - #358
  • Loading branch information
senorprogrammer authored Apr 15, 2019
2 parents 7385dd8 + 5822883 commit 54201a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/jenkins/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ func (widget *Widget) rowColor(idx int) string {
func (widget *Widget) jobColor(job *Job) string {
switch job.Color {
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":
return "red"
default:
Expand Down

0 comments on commit 54201a2

Please sign in to comment.