Jenkins: Use modern coverage step
This commit is contained in:
parent
85127de88d
commit
a392a41acb
2 changed files with 6 additions and 10 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -55,10 +55,8 @@ 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',
|
||||||
|
|
6
tests/modules/Jenkinsfile
vendored
6
tests/modules/Jenkinsfile
vendored
|
@ -16,10 +16,8 @@ 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')
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue