ADD SonarQube
This commit is contained in:
23
platform/Jenkinsfile
vendored
23
platform/Jenkinsfile
vendored
@@ -19,17 +19,20 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('SonarQube Analysis') {
|
||||
steps {
|
||||
withSonarQubeEnv('sonarqube') {
|
||||
sh '''
|
||||
${SONAR_SCANNER_HOME}/bin/sonar-scanner \
|
||||
-Dsonar.projectKey=management-platform \
|
||||
-Dsonar.sources=platform \
|
||||
-Dsonar.python.version=3
|
||||
'''
|
||||
steps {
|
||||
withSonarQubeEnv('sonarqube') {
|
||||
script {
|
||||
def scannerHome = tool 'sonar-scanner'
|
||||
sh """
|
||||
${scannerHome}/bin/sonar-scanner \
|
||||
-Dsonar.projectKey=management-platform \
|
||||
-Dsonar.sources=platform \
|
||||
-Dsonar.python.version=3
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy to Server 1') {
|
||||
steps {
|
||||
|
||||
Reference in New Issue
Block a user