in vars/gerritPipeline.groovy [234:251]
def getLabelValue(acc, res) {
if(res == null || res == 'ABORTED') {
return 0
}
switch(acc) {
case 0: return 0
case 1:
if(res == null) {
return 0
}
switch(res) {
case 'SUCCESS': return +1
case 'FAILURE': return -1
default: return 0
}
case -1: return -1
}
}