This commit is contained in:
2026-05-09 15:00:10 +07:00
parent a82e000972
commit c7196da3f9
Vendored
+10 -5
View File
@@ -6,12 +6,17 @@ pipeline {
} }
stages { stages {
stage('Check SonarScanner') { stage('Sonar Scan') {
steps { steps {
sh ''' withSonarQubeEnv('sonarqube') {
echo "SCANNER_HOME=$SCANNER_HOME" sh '''
$SCANNER_HOME/bin/sonar-scanner --version $SCANNER_HOME/bin/sonar-scanner \
''' -Dsonar.projectKey=test \
-Dsonar.sources=. \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.token=$SONAR_AUTH_TOKEN
'''
}
} }
} }
} }