mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
c5568f8b8f
commit
378a8c5506
1 changed files with 9 additions and 5 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -3,11 +3,15 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
stages {
|
stages {
|
||||||
stage('Docker Build') {
|
stage('Maven Install') {
|
||||||
agent any
|
agent {
|
||||||
steps {
|
docker {
|
||||||
sh 'docker build -t mrcool/spring-petclinic:latest .'
|
image 'maven:3.5.4-jdk-8-alpine'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
steps {
|
||||||
|
sh 'mvn clean install'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue