mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:15:50 +00:00
Fix maven path error
This commit is contained in:
parent
7b1f95e91b
commit
c109326473
1 changed files with 12 additions and 7 deletions
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
|
@ -1,11 +1,7 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
tools {
|
|
||||||
maven "M3"
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
stage("prepare") {
|
stage("prepare") {
|
||||||
|
@ -15,10 +11,17 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("build") {
|
stage("build") {
|
||||||
|
|
||||||
agent { label "build" }
|
agent { label "build" }
|
||||||
|
|
||||||
|
tools {
|
||||||
|
maven "M3"
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh "mvn clean package"
|
sh "mvn clean package"
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
archive "target/*.jar"
|
archive "target/*.jar"
|
||||||
|
@ -35,8 +38,10 @@ pipeline {
|
||||||
"static-analysis" : {
|
"static-analysis" : {
|
||||||
node("build") {
|
node("build") {
|
||||||
unstash "sources"
|
unstash "sources"
|
||||||
withSonarQubeEnv('sonarqube') {
|
withMaven("M3") {
|
||||||
sh 'mvn sonar:sonar'
|
withSonarQubeEnv('sonarqube') {
|
||||||
|
sh 'mvn sonar:sonar'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue