Jenkins: Use modern coverage step

This commit is contained in:
Tobias Gruetzmacher 2023-10-26 22:25:25 +02:00 committed by D. Moonfire
parent bafe3ecb31
commit 25549a36ab
2 changed files with 6 additions and 10 deletions

8
Jenkinsfile vendored
View file

@ -55,11 +55,9 @@ pys.each { py ->
def buildVer = findFiles(glob: 'dist/*.tar.gz')[0].name.replaceFirst(/\.tar\.gz$/, '') def buildVer = findFiles(glob: 'dist/*.tar.gz')[0].name.replaceFirst(/\.tar\.gz$/, '')
currentBuild.description = buildVer currentBuild.description = buildVer
publishCoverage calculateDiffForChangeRequests: true, recordCoverage sourceCodeEncoding: 'UTF-8', tools: [
sourceFileResolver: sourceFiles('STORE_LAST_BUILD'), [parser: 'COBERTURA', pattern: '.tox/reports/*/coverage.xml']
adapters: [ ]
coberturaAdapter('.tox/reports/*/coverage.xml')
]
recordIssues sourceCodeEncoding: 'UTF-8', recordIssues sourceCodeEncoding: 'UTF-8',
referenceJobName: 'dosage/master', referenceJobName: 'dosage/master',

View file

@ -16,11 +16,9 @@ node {
stage('Report') { stage('Report') {
junit 'junit.xml' junit 'junit.xml'
publishCoverage calculateDiffForChangeRequests: true, recordCoverage sourceCodeEncoding: 'UTF-8', tools: [
sourceFileResolver: sourceFiles('STORE_LAST_BUILD'), [parser: 'COBERTURA', pattern: 'coverage.xml']
adapters: [ ]
coberturaAdapter('coverage.xml')
]
} }
stage('Allure Report') { stage('Allure Report') {