Unverified Commit 85f3da1b authored by prawinkorvi's avatar prawinkorvi Committed by GitHub

Update Jenkinsfile

parent 12ec9e8b
...@@ -20,10 +20,11 @@ pipeline { ...@@ -20,10 +20,11 @@ pipeline {
stage('Build docker image') { stage('Build docker image') {
steps { steps {
docker.build('prawinkorvi/petclinic-build/docker') script {
docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') def customImage = docker.build('prawinkorvi/petclinic-build/docker')
docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') {
customImage.push(versionnum+"."+"${env.BUILD_NUMBER}") customImage.push(versionnum+"."+"${env.BUILD_NUMBER}")
} }
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment