Files
code-journey/Jenkinsfile
T
2026-05-09 15:00:10 +07:00

23 lines
572 B
Groovy

pipeline {
agent any
environment {
SCANNER_HOME = tool 'SonarScanner'
}
stages {
stage('Sonar Scan') {
steps {
withSonarQubeEnv('sonarqube') {
sh '''
$SCANNER_HOME/bin/sonar-scanner \
-Dsonar.projectKey=test \
-Dsonar.sources=. \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.token=$SONAR_AUTH_TOKEN
'''
}
}
}
}
}