Added Docker Build Stage

This commit is contained in:
kelvins 2019-10-02 17:27:04 +00:00
parent dcdfe6d0b9
commit 76bcebd6f1

32
Jenkinsfile vendored
View file

@ -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 .'
}
}
}
}