diff --git a/jobs/templates/includes/stage-python-tests.groovy.j2 b/jobs/templates/includes/stage-python-tests.groovy.j2 index f1f6494..6824e90 100644 --- a/jobs/templates/includes/stage-python-tests.groovy.j2 +++ b/jobs/templates/includes/stage-python-tests.groovy.j2 @@ -1,32 +1,33 @@ stage('Python tests') { steps { sh ''' python3 -m tox -e $TOX_ENVIRONMENT -- \ --cov-report=xml \ --junit-xml=test-results.xml \ -v ''' } post { always { archiveArtifacts( allowEmptyArchive: true, artifacts: '*.xml', fingerprint: true, ) publishCoverage( adapters: [ coberturaAdapter(path: 'coverage.xml'), ], tag: 'pytest', + sourceFileResolver: sourceFiles('STORE_LAST_BUILD'), ) // JUnit report junit( allowEmptyResults: true, testResults: 'test-results.xml', ) } } // post } // unit tests