ci: publish frontend test and coverage reports
This commit is contained in:
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@@ -189,7 +189,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Frontend - Lint et Build') {
|
||||
stage('Frontend - Lint, Tests et Build') {
|
||||
steps {
|
||||
sh '''
|
||||
docker run --rm \
|
||||
@@ -213,10 +213,25 @@ pipeline {
|
||||
sh -c "
|
||||
npm ci --prefer-offline --no-audit --no-fund &&
|
||||
npm run lint &&
|
||||
npm run test:coverage &&
|
||||
npm run build
|
||||
"
|
||||
'''
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit(
|
||||
testResults: 'frontend/test-results/*.xml',
|
||||
allowEmptyResults: true
|
||||
)
|
||||
|
||||
archiveArtifacts(
|
||||
artifacts: 'frontend/coverage/**',
|
||||
fingerprint: true,
|
||||
allowEmptyArchive: true
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Construction des images Docker') {
|
||||
|
||||
Reference in New Issue
Block a user