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