Update Jenkinsfile

This commit is contained in:
A-hash-bit 2022-07-27 15:06:13 +05:30 committed by GitHub
parent 6d74a79034
commit d070b0d9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
Jenkinsfile vendored
View file

@ -1,16 +1,15 @@
pipeline {
agent any
agent none
stages {
stage('Maven Install') {
stage('Maven Install') {
agent {
docker {
image 'maven:3.5.0'
}
}
steps {
sh 'mvn clean install'
}
}
stage('Docker Build') {
agent any
steps {
sh 'docker build -t amar1doc/spring-petclinic:latest .'
}
}
}
}