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