Skip to content

Commit

Permalink
Jenkins: Use modern coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed Oct 26, 2023
1 parent 85127de commit a392a41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 3 additions & 5 deletions tests/modules/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit a392a41

Please sign in to comment.