mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:45:49 +00:00
Added changes in Sonar
This commit is contained in:
parent
c24789efbd
commit
e9722cb932
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -7,7 +7,7 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('vcs') {
|
stage('vcs') {
|
||||||
steps {
|
steps {
|
||||||
git url: 'https://github.com/khajadevopsmarch23/spring-petclinic.git',
|
git url: 'https://github.com/Aseerwadham/spring-petclinic.git',
|
||||||
branch: 'main'
|
branch: 'main'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,13 +16,13 @@ pipeline {
|
||||||
jdk 'JDK_17'
|
jdk 'JDK_17'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "mvn ${params.MAVEN_GOAL}"
|
sh "./mvnw ${params.MAVEN_GOAL}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('sonar analysis') {
|
stage('sonar analysis') {
|
||||||
steps {
|
steps {
|
||||||
withSonarQubeEnv('SONAR_CLOUD') {
|
withSonarQubeEnv('SONAR_CLOUD') {
|
||||||
sh 'mvn clean package sonar:sonar -Dsonar.organization=springpetclinic143'
|
sh './mvnw clean package sonar:sonar -Dsonar.organization=springpetclinic143'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue