ci: publish coverage reports in Jenkins
All checks were successful
Tests / Backend - Tests skipped: 7, passed: 27
Backend Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 60.55% (333/550)
* Lines of Code: 550
#### Quality Gates Summary
No active quality gates.
Tests / Frontend - Lint, Tests et Build passed: 45
Frontend Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 86.14% (230/267)
* Lines of Code: 267
#### Quality Gates Summary
No active quality gates.
THE-TIP-TOP-MULTIBRANCH/pipeline/head This commit looks good
All checks were successful
Tests / Backend - Tests skipped: 7, passed: 27
Backend Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 60.55% (333/550)
* Lines of Code: 550
#### Quality Gates Summary
No active quality gates.
Tests / Frontend - Lint, Tests et Build passed: 45
Frontend Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 86.14% (230/267)
* Lines of Code: 267
#### Quality Gates Summary
No active quality gates.
THE-TIP-TOP-MULTIBRANCH/pipeline/head This commit looks good
This commit is contained in:
40
Jenkinsfile
vendored
40
Jenkinsfile
vendored
@@ -180,13 +180,32 @@ pipeline {
|
|||||||
allowEmptyResults: true
|
allowEmptyResults: true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
recordCoverage(
|
||||||
|
tools: [[
|
||||||
|
parser: 'LCOV',
|
||||||
|
pattern: 'backend/coverage/lcov.info'
|
||||||
|
]],
|
||||||
|
sourceCodeRetention: 'EVERY_BUILD',
|
||||||
|
id: 'backend-coverage',
|
||||||
|
name: 'Backend Coverage'
|
||||||
|
)
|
||||||
|
|
||||||
|
publishHTML([
|
||||||
|
allowMissing: true,
|
||||||
|
alwaysLinkToLastBuild: true,
|
||||||
|
keepAll: true,
|
||||||
|
reportDir: 'backend/coverage',
|
||||||
|
reportFiles: 'index.html',
|
||||||
|
reportName: 'Backend Coverage HTML'
|
||||||
|
])
|
||||||
|
|
||||||
archiveArtifacts(
|
archiveArtifacts(
|
||||||
artifacts: 'backend/coverage/**',
|
artifacts: 'backend/coverage/**',
|
||||||
fingerprint: true,
|
fingerprint: true,
|
||||||
allowEmptyArchive: true
|
allowEmptyArchive: true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Frontend - Lint, Tests et Build') {
|
stage('Frontend - Lint, Tests et Build') {
|
||||||
@@ -225,6 +244,25 @@ pipeline {
|
|||||||
allowEmptyResults: true
|
allowEmptyResults: true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
recordCoverage(
|
||||||
|
tools: [[
|
||||||
|
parser: 'LCOV',
|
||||||
|
pattern: 'frontend/coverage/lcov.info'
|
||||||
|
]],
|
||||||
|
sourceCodeRetention: 'EVERY_BUILD',
|
||||||
|
id: 'frontend-coverage',
|
||||||
|
name: 'Frontend Coverage'
|
||||||
|
)
|
||||||
|
|
||||||
|
publishHTML([
|
||||||
|
allowMissing: true,
|
||||||
|
alwaysLinkToLastBuild: true,
|
||||||
|
keepAll: true,
|
||||||
|
reportDir: 'frontend/coverage',
|
||||||
|
reportFiles: 'index.html',
|
||||||
|
reportName: 'Frontend Coverage HTML'
|
||||||
|
])
|
||||||
|
|
||||||
archiveArtifacts(
|
archiveArtifacts(
|
||||||
artifacts: 'frontend/coverage/**',
|
artifacts: 'frontend/coverage/**',
|
||||||
fingerprint: true,
|
fingerprint: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user