fix: provide Node.js to SonarQube analysis
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.91% (335/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.91% (335/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:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -277,6 +277,10 @@ pipeline {
|
|||||||
branch 'develop'
|
branch 'develop'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tools {
|
||||||
|
nodejs 'node22'
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def scannerHome = tool 'sonar-scanner'
|
def scannerHome = tool 'sonar-scanner'
|
||||||
@@ -284,6 +288,9 @@ pipeline {
|
|||||||
withEnv(["SCANNER_HOME=${scannerHome}"]) {
|
withEnv(["SCANNER_HOME=${scannerHome}"]) {
|
||||||
withSonarQubeEnv('sonarqube') {
|
withSonarQubeEnv('sonarqube') {
|
||||||
sh '''
|
sh '''
|
||||||
|
echo "Node utilisé par Sonar :"
|
||||||
|
node -v
|
||||||
|
|
||||||
"${SCANNER_HOME}/bin/sonar-scanner" \
|
"${SCANNER_HOME}/bin/sonar-scanner" \
|
||||||
-Dsonar.projectKey=THE-TIP-TOP \
|
-Dsonar.projectKey=THE-TIP-TOP \
|
||||||
-Dsonar.projectName=THE-TIP-TOP \
|
-Dsonar.projectName=THE-TIP-TOP \
|
||||||
|
|||||||
Reference in New Issue
Block a user