From 25549a36ab91b2ab9c1568619f37e460162c0af5 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Thu, 26 Oct 2023 22:25:25 +0200 Subject: [PATCH] Jenkins: Use modern coverage step --- Jenkinsfile | 8 +++----- tests/modules/Jenkinsfile | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 776b5f612..4a2ee6258 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,11 +55,9 @@ pys.each { py -> def buildVer = findFiles(glob: 'dist/*.tar.gz')[0].name.replaceFirst(/\.tar\.gz$/, '') currentBuild.description = buildVer - publishCoverage calculateDiffForChangeRequests: true, - sourceFileResolver: sourceFiles('STORE_LAST_BUILD'), - adapters: [ - coberturaAdapter('.tox/reports/*/coverage.xml') - ] + recordCoverage sourceCodeEncoding: 'UTF-8', tools: [ + [parser: 'COBERTURA', pattern: '.tox/reports/*/coverage.xml'] + ] recordIssues sourceCodeEncoding: 'UTF-8', referenceJobName: 'dosage/master', diff --git a/tests/modules/Jenkinsfile b/tests/modules/Jenkinsfile index 7fbe276b5..4f157ebc1 100644 --- a/tests/modules/Jenkinsfile +++ b/tests/modules/Jenkinsfile @@ -16,11 +16,9 @@ node { stage('Report') { junit 'junit.xml' - publishCoverage calculateDiffForChangeRequests: true, - sourceFileResolver: sourceFiles('STORE_LAST_BUILD'), - adapters: [ - coberturaAdapter('coverage.xml') - ] + recordCoverage sourceCodeEncoding: 'UTF-8', tools: [ + [parser: 'COBERTURA', pattern: 'coverage.xml'] + ] } stage('Allure Report') {