mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
added artifact
This commit is contained in:
parent
2c2ece287e
commit
970f81c6dc
1 changed files with 8 additions and 2 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -21,7 +21,6 @@ pipeline{
|
||||||
stage('SonarQube Scan') {
|
stage('SonarQube Scan') {
|
||||||
steps {
|
steps {
|
||||||
withSonarQubeEnv('SONAR_CLOUD') {
|
withSonarQubeEnv('SONAR_CLOUD') {
|
||||||
// sh 'mvn clean package sonar:sonar -Dsonar.organization=springpetclinic -Dsonar.token=94fa8a4b44707c54a1aae9c4894e0cd8bf0d18d6 -Dsonar.projectKey=sridhardevops006'
|
|
||||||
sh 'mvn clean package sonar:sonar -Dsonar.organization=sridhardevops -Dsonar.token=94fa8a4b44707c54a1aae9c4894e0cd8bf0d18d6 -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=sridhardevops006'
|
sh 'mvn clean package sonar:sonar -Dsonar.organization=sridhardevops -Dsonar.token=94fa8a4b44707c54a1aae9c4894e0cd8bf0d18d6 -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=sridhardevops006'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -35,7 +34,14 @@ pipeline{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
stage('artifact') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: '**/target/spring-petclinic-3.1.0-SNAPSHOT.jar',
|
||||||
|
onlyIfSuccessful: true
|
||||||
|
junit testResults: '**/surefire-reports/TEST-*.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue