added artifacts and test reports

This commit is contained in:
Bharatkumar5690 2023-03-08 12:41:49 +05:30
parent 6703e90dea
commit 5c75d795d1

8
Jenkinsfile vendored
View file

@ -12,7 +12,13 @@ pipeline {
sh 'mvn package'
}
}
stage('test code by using sonarqube') {
stage('Test the code by using sonarqube') {
steps {
withSonarQubeEnv('SONAR_CLOUD') {
sh 'mvn clean package sonar:sonar'
}
}
stage('Gathering the artifacts & test results') {
steps {
archiveArtifacts artifacts: '**/target/*.jar',
onlyIfSuccessful: true,