From 5938124b621879bc0b7c0ef3355d1c2706694399 Mon Sep 17 00:00:00 2001 From: Anton Date: Sun, 6 Oct 2024 21:57:52 +0300 Subject: [PATCH] Update sonar --- ci/sonar | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/sonar b/ci/sonar index 38f0c67844..33ceedf390 100644 --- a/ci/sonar +++ b/ci/sonar @@ -4,8 +4,10 @@ pipeline { stage('Scan') { steps { - bat 'call "C:/Program Files/sonar-scanner-5.0.1.3006-windows/bin/sonar-scanner.bat" -D"sonar.projectKey=OpenIntegrations" -D"sonar.login=c7bba52fafdd733c533738dca138cdec9a800cf3" -D"sonar.sourceEncoding=UTF-8" -D"sonar.inclusions=**/*.bsl"' - bat 'call "C:/Program Files/sonar-scanner-5.0.1.3006-windows/bin/sonar-scanner.bat" -D"sonar.projectKey=OInt" -D"sonar.login=c7bba52fafdd733c533738dca138cdec9a800cf3" -D"sonar.sourceEncoding=UTF-8" -D"sonar.coverageReportPaths=OInt/coverage/genericCoverage.xml" -D"sonar.inclusions=**/*.os"' + withCredentials([string(credentialsId: 'Sonar', variable: 'LOGIN')]) { + bat 'call "C:/Program Files/sonar-scanner-5.0.1.3006-windows/bin/sonar-scanner.bat" -D"sonar.projectKey=OpenIntegrations" -D"sonar.login=%LOGIN%" -D"sonar.sourceEncoding=UTF-8" -D"sonar.inclusions=**/*.bsl"' + bat 'call "C:/Program Files/sonar-scanner-5.0.1.3006-windows/bin/sonar-scanner.bat" -D"sonar.projectKey=OInt" -D"sonar.login=%LOGIN%" -D"sonar.sourceEncoding=UTF-8" -D"sonar.coverageReportPaths=OInt/coverage/genericCoverage.xml" -D"sonar.inclusions=**/*.os"' + } } } }