Commit b83ef163 authored by Fernando Vazquez's avatar Fernando Vazquez

Added sonarqube stage

parent 64d7f86b
...@@ -19,10 +19,12 @@ pipeline { ...@@ -19,10 +19,12 @@ pipeline {
} }
} }
stage('SonarQube Analysis') { stage('SonarQube Analysis') {
steps{
withSonarQubeEnv() { withSonarQubeEnv() {
sh "mvn clean verify sonar:sonar -Dsonar.projectKey=hello-spring" sh "mvn clean verify sonar:sonar -Dsonar.projectKey=hello-spring"
} }
} }
}
stage("Quality Gate") { stage("Quality Gate") {
steps { steps {
timeout(time: 5, unit: 'MINUTES') { timeout(time: 5, unit: 'MINUTES') {
......
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