Unverified Commit 462797f8 authored by prawinkorvi's avatar prawinkorvi Committed by GitHub

Update Jenkinsfile

parent 6e374195
pipeline { pipeline {
agent any agent any
tools { tools {
maven 'maven3' maven 'maven3'
jdk 'JDK8' jdk 'JDK8'
} }
stages { stages {
stage('Build maven ') { stage('Build maven ') {
steps { steps {
sh 'pwd' sh 'pwd'
sh 'mvn clean install package' sh 'mvn clean install package'
} }
} }
} }
stage('Copy Artifact') { stage('Copy Artifact') {
steps { steps {
sh 'cp -r petclinic-build/target/*.war docker' sh 'cp -r petclinic-build/target/*.war docker'
} }
} }
stage('Build docker image') { stage('Build docker image') {
steps { steps {
docker.build('prawinkorvi/petclinic-build/docker') docker.build('prawinkorvi/petclinic-build/docker')
docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') { docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') {
......
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