diff --git a/jobs/templates/includes/stage-python-tests.groovy.j2 b/jobs/templates/includes/stage-python-tests.groovy.j2 index 3237e34..61563c7 100644 --- a/jobs/templates/includes/stage-python-tests.groovy.j2 +++ b/jobs/templates/includes/stage-python-tests.groovy.j2 @@ -1,34 +1,29 @@ stage('Unit tests') { options { timeout(time: 20, unit: 'MINUTES') } steps { sh ''' python3 -m tox -e $TOX_ENVIRONMENT -- \ --cov-report=xml \ --junit-xml=test-results.xml \ -v ''' } post { always { - step([$class: 'CoberturaPublisher', - autoUpdateHealth: false, - autoUpdateStability: false, - coberturaReportFile: 'coverage.xml', - failNoReports: false, - failUnhealthy: false, - failUnstable: false, - maxNumberOfBuilds: 10, - onlyStable: false, - sourceEncoding: 'ASCII', - zoomCoverageChart: false]) + publishCoverage( + adapters: [ + coberturaAdapter(path: 'coverage.xml'), + ], + tag: 'pytest', + ) // JUnit report junit( allowEmptyResults: true, testResults: 'test-results.xml', ) } } // post } // unit tests