Commit b83ef163 authored by Fernando Vazquez's avatar Fernando Vazquez

Added sonarqube stage

parent 64d7f86b
...@@ -19,8 +19,10 @@ pipeline { ...@@ -19,8 +19,10 @@ pipeline {
} }
} }
stage('SonarQube Analysis') { stage('SonarQube Analysis') {
withSonarQubeEnv() { steps{
sh "mvn clean verify sonar:sonar -Dsonar.projectKey=hello-spring" withSonarQubeEnv() {
sh "mvn clean verify sonar:sonar -Dsonar.projectKey=hello-spring"
}
} }
} }
stage("Quality Gate") { stage("Quality Gate") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment