Added changes

This commit is contained in:
Nanditha54 2023-03-08 15:51:35 +05:30
parent 821cc06b80
commit 949f5af92d

4
Jenkinsfile vendored
View file

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