From c22c72e99cd68a2227bda39ccf6feb88a806dd87 Mon Sep 17 00:00:00 2001 From: Andil Date: Mon, 24 Aug 2026 19:53:42 +0000 Subject: [PATCH] fix: provide Node.js to SonarQube analysis --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index af66e8b..bfbcfaf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -277,6 +277,10 @@ pipeline { branch 'develop' } + tools { + nodejs 'node22' + } + steps { script { def scannerHome = tool 'sonar-scanner' @@ -284,6 +288,9 @@ pipeline { withEnv(["SCANNER_HOME=${scannerHome}"]) { withSonarQubeEnv('sonarqube') { sh ''' + echo "Node utilisé par Sonar :" + node -v + "${SCANNER_HOME}/bin/sonar-scanner" \ -Dsonar.projectKey=THE-TIP-TOP \ -Dsonar.projectName=THE-TIP-TOP \