Commit 1df7418f authored by Serdar TURKEL's avatar Serdar TURKEL

add sonarqube step

parent 418bb0fa
...@@ -19,6 +19,11 @@ pipeline { ...@@ -19,6 +19,11 @@ pipeline {
NEXUS_CREDENTIAL_ID = "Nexus" NEXUS_CREDENTIAL_ID = "Nexus"
} }
stages { stages {
stage('SonarQube Analysis') {
withSonarQubeEnv() {
sh "mvn clean verify sonar:sonar -Dsonar.projectKey=root_springtemplate_AYZftR_ZzMb5kwrVJ5Oy"
}
}
stage('Maven Build') { stage('Maven Build') {
steps { steps {
sh 'echo ${JAVA_HOME}' sh 'echo ${JAVA_HOME}'
......
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