Added changes

This commit is contained in:
Nanditha54 2023-03-08 15:29:08 +05:30
parent d2a344e629
commit 821cc06b80

4
Jenkinsfile vendored
View file

@ -23,11 +23,11 @@ pipeline {
stage('sonar analysis') {
steps {
// performing sonarqube analysis with "withSonarQubeENV(<Name of Server configured in Jenkins>)"
withSonarQubeEnv('SONAR_CLOUD') {
withSonarQubeEnv('SONAR_CLOUD'),
sh 'mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=nan_sonarcube'
}
}
}
stage('post build') {
steps {
archiveArtifacts artifacts: '**/target/spring-petclinic-3.0.0-SNAPSHOT.jar',