Merge pull request #21253 from cpennington/coverage-combine-test-suite

Archive all coverage reports, named by test context
This commit is contained in:
Calen Pennington
2019-07-30 15:18:59 -04:00
committed by GitHub
3 changed files with 9 additions and 2 deletions

View File

@@ -186,6 +186,6 @@ def fetch_coverage_test_selection_data(options):
def upload_coverage_to_s3():
upload_to_s3(
COVERAGE_CACHE_BASELINE,
'{}/{}'.format(COVERAGE_CACHE_BASEPATH, 'reports/{}.coverage'.format(os.environ.get('TEST_SUITE'))),
'{}/{}'.format(COVERAGE_CACHE_BASEPATH, 'reports/{}.coverage'.format(os.environ.get('TEST_SUITE', ''))),
COVERAGE_CACHE_BUCKET
)

View File

@@ -104,6 +104,13 @@ pipeline {
}
}
}
post {
always {
script {
archiveArtifacts allowEmptyArchive: true, artifacts: 'reports/*.coverage'
}
}
}
}
}
post {

View File

@@ -175,7 +175,7 @@ pipeline {
post {
always {
script {
archiveArtifacts allowEmptyArchive: true, artifacts: 'reports/${TEST_SUITE}.coverage'
archiveArtifacts allowEmptyArchive: true, artifacts: 'reports/*.coverage'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true,
reportDir: 'reports/cover', reportFiles: 'index.html',
reportName: 'Coverage.py Report', reportTitles: ''])