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