mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:55:49 +00:00
added artifacts and test reports
This commit is contained in:
parent
6703e90dea
commit
5c75d795d1
1 changed files with 7 additions and 1 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue