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
32
Jenkinsfile
vendored
32
Jenkinsfile
vendored
|
@ -1,16 +1,22 @@
|
||||||
#!groovy
|
#!groovy
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
stages {
|
stages {
|
||||||
stage('Maven Install') {
|
stage('Maven Install') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'maven:3.5.0'
|
image 'maven:3.5.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn clean install'
|
sh 'mvn clean install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
stage('Docker Build') {
|
||||||
}
|
agent any
|
||||||
|
steps {
|
||||||
|
sh 'docker build -t spring-petclinic:latest .'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue