From ec714d18eb1e4b1c272c502f7be3aa5371a79c6d Mon Sep 17 00:00:00 2001 From: Viktor Vorobev <vorobev@in.tum.de> Date: Thu, 21 Jan 2021 10:51:42 +0000 Subject: [PATCH] Merged in NRRPLT-8128-test-coverage-update-py3.8 (pull request #28) [NRRPLT-8128] Test coverage update Python 3.8 * [NRRPLT-8127] make reports with function * [NRRPLT-8127] setup auto coverage threshould Approved-by: Krzysztof Lebioda Approved-by: Vahid Zolfaghari --- Jenkinsfile | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 68c0138..9738080 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,8 +17,7 @@ pipeline { TOPIC_BRANCH = selectTopicBranch(env.BRANCH_NAME, env.CHANGE_BRANCH) DEFAULT_BRANCH = 'development' - NRP_COVERAGE_LINE=50 - NRP_COVERAGE_BRANCH=0 + CODE_COVERAGE_LINE = 74 } agent { docker { @@ -84,18 +83,8 @@ pipeline { sh 'sudo -H -u bbpnrsoa bash .ci/build.bash' // deliver artifacts - step([$class: 'CoberturaPublisher', - autoUpdateHealth: true, - autoUpdateStability: false, - coberturaReportFile: 'coverage.xml', - failUnhealthy: true, - failUnstable: false, - maxNumberOfBuilds: 0, - onlyStable: false, - sourceEncoding: 'ASCII', - zoomCoverageChart: false, - lineCoverageTargets: "0.0, 0, 0"]) - archiveArtifacts 'coverage.xml' + // Make true to false when the coverage reaches 85%-90%. This with turn off auto threshold for coverage + makeReports(true, env.CODE_COVERAGE_LINE) } } } @@ -106,8 +95,7 @@ pipeline { dir(env.GIT_CHECKOUT_DIR){ archiveArtifacts 'p*.*' archiveArtifacts 'test-reports/*.*' - junit 'test-reports/*.xml' - recordIssues enabledForFailure: true, tools: [pyLint(pattern: 'pylint.txt'), pep8(pattern: 'pycodestyle.txt')], qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]] + archiveArtifacts 'coverage.xml' } } aborted { -- GitLab