From 21a6dccd36d668e5f8a781087087195a35b8f6c5 Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Mon, 22 Feb 2021 13:53:21 +0200 Subject: [PATCH] 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 --- Jenkinsfile.public | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.public b/Jenkinsfile.public index 941b5d345..98127f7c8 100644 --- a/Jenkinsfile.public +++ b/Jenkinsfile.public @@ -96,8 +96,9 @@ pipeline { sh script: 'gocov convert .build/clean.coverprofile > .build/cover.json', returnStatus: true sh script: 'gocov-xml < .build/cover.json > .build/cobertura.xml', returnStatus: true cobertura coberturaReportFile: '.build/cobertura.xml', - lineCoverageTargets: '100, 0, 0', - autoUpdateHealth: true, + lineCoverageTargets: '70, 60, 50', + autoUpdateHealth: false, + autoUpdateStability: false, failUnhealthy: true } }