fix: avoid duplicate SonarQube test indexing
Some checks failed
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 There was a failure building this commit
Some checks failed
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 There was a failure building this commit
This commit is contained in:
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@@ -281,24 +281,19 @@ pipeline {
|
|||||||
script {
|
script {
|
||||||
def scannerHome = tool 'sonar-scanner'
|
def scannerHome = tool 'sonar-scanner'
|
||||||
|
|
||||||
withSonarQubeEnv('sonarqube') {
|
withEnv(["SCANNER_HOME=${scannerHome}"]) {
|
||||||
withCredentials([
|
withSonarQubeEnv('sonarqube') {
|
||||||
string(
|
sh '''
|
||||||
credentialsId: 'sonarqube-token',
|
"${SCANNER_HOME}/bin/sonar-scanner" \
|
||||||
variable: 'SONAR_TOKEN'
|
|
||||||
)
|
|
||||||
]) {
|
|
||||||
sh """
|
|
||||||
${scannerHome}/bin/sonar-scanner \
|
|
||||||
-Dsonar.projectKey=the-tip-top \
|
-Dsonar.projectKey=the-tip-top \
|
||||||
-Dsonar.projectName=THE-TIP-TOP \
|
-Dsonar.projectName=THE-TIP-TOP \
|
||||||
-Dsonar.sources=backend/src,frontend/src \
|
-Dsonar.sources=backend/src,frontend/src \
|
||||||
-Dsonar.tests=backend/tests,frontend/src/test \
|
-Dsonar.tests=backend/tests,frontend/src/test \
|
||||||
|
-Dsonar.exclusions=frontend/src/test/**,backend/tests/**,**/node_modules/**,**/coverage/**,**/dist/** \
|
||||||
|
-Dsonar.test.inclusions=backend/tests/**,frontend/src/test/** \
|
||||||
-Dsonar.javascript.lcov.reportPaths=backend/coverage/lcov.info,frontend/coverage/lcov.info \
|
-Dsonar.javascript.lcov.reportPaths=backend/coverage/lcov.info,frontend/coverage/lcov.info \
|
||||||
-Dsonar.exclusions=**/node_modules/**,**/coverage/**,**/dist/** \
|
-Dsonar.sourceEncoding=UTF-8
|
||||||
-Dsonar.sourceEncoding=UTF-8 \
|
'''
|
||||||
-Dsonar.token="${SONAR_TOKEN}"
|
|
||||||
"""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user