jenkins file added

This commit is contained in:
Maharshi Patel 2021-01-09 14:54:17 -08:00
parent 76b3b07c6e
commit f0ce4b9dd8

23
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,23 @@
pipeline {
agent {
label 'dockerbuild'
}
stages {
stage('Building our image') {
steps {
script {
dockerImage = docker.build "mpatel011/spring-petclinic:$BUILD_NUMBER"
}
}
}
stage('Deploy our image') {
steps {
script {
docker.withRegistry('' , 'dockerhub') {
dockerImage.push()
}
}
}
}
}
}