mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-28 18:35:49 +00:00
added comma
This commit is contained in:
parent
72b32d2c07
commit
2a86a1518f
1 changed files with 9 additions and 11 deletions
20
Jenkinsfile1
20
Jenkinsfile1
|
@ -6,24 +6,22 @@ pipeline {
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('vcs') {
|
stage('vcs') {
|
||||||
steps{
|
steps{
|
||||||
git url: 'https://github.com/shaiksohail11/spring-petclinic.git',
|
git url: 'https://github.com/shaiksohail11/spring-petclinic.git',
|
||||||
branch: 'main'
|
branch: 'main'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('build') {
|
stage('build') {
|
||||||
steps{
|
steps{
|
||||||
sh "mvn package"
|
sh "mvn package"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('sonar analysis') {
|
stage('sonar analysis') {
|
||||||
steps{
|
steps{
|
||||||
withSonarQubeEnv('SONAR_CLOUD') {
|
withSonarQubeEnv('SONAR_CLOUD') {
|
||||||
sh 'mvn clean package sonar:sonar -Dsonar.organization=jenkins12'
|
sh 'mvn clean package sonar:sonar -Dsonar.organization=jenkins12'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue