Commit 64d7f86b authored by Fernando Vazquez's avatar Fernando Vazquez

Added sonarqube stage

parent 2821302c
......@@ -18,5 +18,17 @@ pipeline {
sh 'mvn -Dmaven.test.failure.ignore=false install'
}
}
stage('SonarQube Analysis') {
withSonarQubeEnv() {
sh "mvn clean verify sonar:sonar -Dsonar.projectKey=hello-spring"
}
}
stage("Quality Gate") {
steps {
timeout(time: 5, unit: 'MINUTES') {
waitForQualityGate abortPipeline: true
}
}
}
}
}
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