mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
added configFileProvider
This commit is contained in:
parent
d996061554
commit
79b053c200
1 changed files with 4 additions and 8 deletions
|
@ -16,7 +16,9 @@ pipeline {
|
|||
}
|
||||
}
|
||||
steps {
|
||||
sh 'mvn clean install'
|
||||
configFileProvider([configFile(fileId: 'nexus', variable: 'MAVEN_SETTINGS')]) {
|
||||
sh 'mvn -s $MAVEN_SETTINGS clean deploy -DskipTests=true -B'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build container') {
|
||||
|
@ -47,11 +49,5 @@ pipeline {
|
|||
sh 'sleep 4'
|
||||
}
|
||||
}
|
||||
stage('Stop local container') {
|
||||
agent any
|
||||
steps {
|
||||
sh 'docker rm -f petclinic-tomcat-temp || true'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue