automated terminal push
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -32,8 +32,16 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('SonarQube Scan') {
|
stage('SonarQube Scan') {
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
// Resolve the SonarQube Scanner installation
|
||||||
|
def scannerHome = tool 'SonarQubeScanner'
|
||||||
withSonarQubeEnv('SonarQube') {
|
withSonarQubeEnv('SonarQube') {
|
||||||
sh "sonar-scanner -Dsonar.projectKey=nvhi-atsila-microservice -Dsonar.sources=."
|
sh """
|
||||||
|
${scannerHome}/bin/sonar-scanner \
|
||||||
|
-Dsonar.projectKey=nvhi-atsila-microservice \
|
||||||
|
-Dsonar.sources=.
|
||||||
|
"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user