mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
a00bb36810
commit
5c6309ceaa
1 changed files with 27 additions and 0 deletions
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
|
@ -1 +1,28 @@
|
||||||
|
node('master'){
|
||||||
|
stage('scm'){
|
||||||
|
git 'https://github.com/ametgud4u/spring-petclinic.git'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('build'){
|
||||||
|
sh label: '', script: 'mvn clean package'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('postbuild'){
|
||||||
|
junit '**/target/surefire-reports/*.xml'
|
||||||
|
archiveArtifacts 'target/*.jar'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Sonar') {
|
||||||
|
withSonarQubeEnv('sonar') {
|
||||||
|
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage("Quality Gate") {
|
||||||
|
steps {
|
||||||
|
timeout(time: 1, unit: 'HOURS') {
|
||||||
|
waitForQualityGate abortPipeline: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue