From 32ee66f7f4e2f1c767f3821b590a78ee8fdab97c Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Mon, 28 Oct 2019 16:15:26 +0100 Subject: [PATCH] Jenkins: Use modern coverage api --- Jenkinsfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0339dbbb8..85fba8534 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,14 +53,12 @@ pys.each { py -> def buildVer = findFiles(glob: 'dist/*.tar.gz')[0].name.replaceFirst(/\.tar\.gz$/, '') currentBuild.description = buildVer - cobertura autoUpdateHealth: false, - autoUpdateStability: false, - coberturaReportFile: '.tox/cov-*.xml', - failUnhealthy: false, - failUnstable: false, - maxNumberOfBuilds: 0, - onlyStable: false, - zoomCoverageChart: false + publishCoverage calculateDiffForChangeRequests: true, + sourceFileResolver: sourceFiles('STORE_LAST_BUILD'), + adapters: [ + coberturaAdapter('.tox/cov-*.xml') + ] + recordIssues sourceCodeEncoding: 'UTF-8', tool: flake8(pattern: '.tox/flake8.log', reportEncoding: 'UTF-8') }