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
pipeline {
agent none
stages {
agent none
stages {
stage('Maven Install') {
agent {
docker {
image 'maven:3.5.0'
}
}
steps {
sh 'mvn clean install'
}
}
}
}
agent {
docker {
image 'maven:3.5.0'
}
}
steps {
sh 'mvn clean install'
}
}
stage('Docker Build') {
agent any
steps {
sh 'docker build -t spring-petclinic:latest .'
}
}
}
}