Added changes in Sonar

This commit is contained in:
Aseerwadham 2023-03-16 15:49:12 +05:30
parent c24789efbd
commit e9722cb932

6
Jenkinsfile vendored
View file

@ -7,7 +7,7 @@ pipeline {
stages {
stage('vcs') {
steps {
git url: 'https://github.com/khajadevopsmarch23/spring-petclinic.git',
git url: 'https://github.com/Aseerwadham/spring-petclinic.git',
branch: 'main'
}
}
@ -16,13 +16,13 @@ pipeline {
jdk 'JDK_17'
}
steps {
sh "mvn ${params.MAVEN_GOAL}"
sh "./mvnw ${params.MAVEN_GOAL}"
}
}
stage('sonar analysis') {
steps {
withSonarQubeEnv('SONAR_CLOUD') {
sh 'mvn clean package sonar:sonar -Dsonar.organization=springpetclinic143'
sh './mvnw clean package sonar:sonar -Dsonar.organization=springpetclinic143'
}
}
}