ci: set specific line coverage targets
Currently the auto-updating keeps moving the target upwards without allowing for variations in the pipeline. Let's try these settings: * >=70% lines covered, to pass * <=60% lines covered, to mark as unhealthy * <=50% lines covered, to mark as unstable Change-Id: Idc75e682345f6d62af34379362c75d321e564d2c
This commit is contained in:
parent
549033f2e6
commit
21a6dccd36
@ -96,8 +96,9 @@ pipeline {
|
|||||||
sh script: 'gocov convert .build/clean.coverprofile > .build/cover.json', returnStatus: true
|
sh script: 'gocov convert .build/clean.coverprofile > .build/cover.json', returnStatus: true
|
||||||
sh script: 'gocov-xml < .build/cover.json > .build/cobertura.xml', returnStatus: true
|
sh script: 'gocov-xml < .build/cover.json > .build/cobertura.xml', returnStatus: true
|
||||||
cobertura coberturaReportFile: '.build/cobertura.xml',
|
cobertura coberturaReportFile: '.build/cobertura.xml',
|
||||||
lineCoverageTargets: '100, 0, 0',
|
lineCoverageTargets: '70, 60, 50',
|
||||||
autoUpdateHealth: true,
|
autoUpdateHealth: false,
|
||||||
|
autoUpdateStability: false,
|
||||||
failUnhealthy: true
|
failUnhealthy: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user