Commit d22af6db authored by root's avatar root
parents 19c534e0 d3479cdb
...@@ -8,10 +8,27 @@ pipeline { ...@@ -8,10 +8,27 @@ pipeline {
stage('Build maven ') { stage('Build maven ') {
steps { steps {
sh 'pwd' sh 'pwd'
sh 'cd /var/lib/jenkins/workspace/petclinic-build/petclinic'
sh 'pwd'
sh 'mvn clean install package' sh 'mvn clean install package'
} }
} }
} }
} stage('Copy Artifact') {
steps {
sh 'cp -r petclinic-build/target/*.war docker'
}
}
}
stage('Build docker image ') {
steps {
script {
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