Unverified Commit 2d5ba969 authored by prawinkorvi's avatar prawinkorvi Committed by GitHub

Update Jenkinsfile

parent f4ea1113
......@@ -9,23 +9,21 @@ pipeline {
steps {
sh 'pwd'
sh 'mvn clean install package'
}
}
}
}
stage('Copy Artifact') {
steps {
sh 'cp -r petclinic-build/target/*.war docker'
}
}
}
stage('Build docker image') {
steps {
docker.build('prawinkorvi/petclinic-build/docker')
docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') {
customImage.push(versionnum+"."+"${env.BUILD_NUMBER}")
}
}
docker.build('prawinkorvi/petclinic-build/docker')
docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') {
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