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:
parent
7385dd82d9
commit
db7e4b960c
@ -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":
|
||||||
return "blue"
|
// Override color if greenBalls boolean param provided in config
|
||||||
|
if wtf.Config.UString("wtf.mods.jenkins.greenBalls") == "true" {
|
||||||
|
return "green"
|
||||||
|
} else {
|
||||||
|
return "blue"
|
||||||
|
}
|
||||||
case "red":
|
case "red":
|
||||||
return "red"
|
return "red"
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user