From 752f8d8103433bb473486c8668ec9926cf2d359a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szab=C3=B3=20Barnab=C3=A1s?= Date: Mon, 29 Jan 2018 22:44:40 +0100 Subject: [PATCH] Jenkinsfile --- Jenkinsfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c8cc63e3d..7a66d0ee3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,12 +17,10 @@ pipeline { ./mvnw clean package -DskipTests -T 2 ''' } + + docker.build("loxon/petclinic:2.0.0").push() } - sh './mvnw clean package -DskipTests' - sh 'pwd' - sh 'ls -la' - sh 'docker build --pull -t loxon/petclinic:2.0.0 .' - sh 'docker push loxon/petclinic:2.0.0' + } }