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