Update Jenkinsfile

This commit is contained in:
Sanjeev435 2018-08-22 22:35:21 +05:30 committed by GitHub
parent c5568f8b8f
commit 378a8c5506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
Jenkinsfile vendored
View file

@ -3,11 +3,15 @@
pipeline {
agent none
stages {
stage('Docker Build') {
agent any
steps {
sh 'docker build -t mrcool/spring-petclinic:latest .'
stage('Maven Install') {
agent {
docker {
image 'maven:3.5.4-jdk-8-alpine'
}
}
}
steps {
sh 'mvn clean install'
}
}
}
}