mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:25:50 +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 {
|
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') {
|
stage('Build container') {
|
||||||
|
@ -47,11 +49,5 @@ pipeline {
|
||||||
sh 'sleep 4'
|
sh 'sleep 4'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Stop local container') {
|
|
||||||
agent any
|
|
||||||
steps {
|
|
||||||
sh 'docker rm -f petclinic-tomcat-temp || true'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue