mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Added Docker Build Stage
This commit is contained in:
parent
dcdfe6d0b9
commit
76bcebd6f1
1 changed files with 19 additions and 13 deletions
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
|
@ -1,16 +1,22 @@
|
|||
#!groovy
|
||||
pipeline {
|
||||
agent none
|
||||
stages {
|
||||
agent none
|
||||
stages {
|
||||
stage('Maven Install') {
|
||||
agent {
|
||||
docker {
|
||||
image 'maven:3.5.0'
|
||||
}
|
||||
docker {
|
||||
image 'maven:3.5.0'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'mvn clean install'
|
||||
}
|
||||
}
|
||||
stage('Docker Build') {
|
||||
agent any
|
||||
steps {
|
||||
sh 'docker build -t spring-petclinic:latest .'
|
||||
}
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'mvn clean install'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue