Jenkins: Use modern coverage step

This commit is contained in:
Tobias Gruetzmacher 2023-10-26 22:25:25 +02:00
parent 85127de88d
commit a392a41acb
No known key found for this signature in database
2 changed files with 6 additions and 10 deletions

6
Jenkinsfile vendored
View file

@ -55,10 +55,8 @@ 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',

View file

@ -16,10 +16,8 @@ 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']
]
}