Fix maven path error

This commit is contained in:
Michaël Pailloncy 2017-03-06 17:35:12 +01:00
parent 7b1f95e91b
commit c109326473

13
Jenkinsfile vendored
View file

@ -2,10 +2,6 @@ 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,10 +38,12 @@ pipeline {
"static-analysis" : { "static-analysis" : {
node("build") { node("build") {
unstash "sources" unstash "sources"
withMaven("M3") {
withSonarQubeEnv('sonarqube') { withSonarQubeEnv('sonarqube') {
sh 'mvn sonar:sonar' sh 'mvn sonar:sonar'
} }
} }
}
}, },
"performance-tests": { "performance-tests": {
node("build") { node("build") {