From 67084277f807e537b1ff4418624b0579aa087dd1 Mon Sep 17 00:00:00 2001 From: Stas Bezuhlyi <56916662+stasbezuhlyi@users.noreply.github.com> Date: Thu, 8 Apr 2021 18:21:20 +0300 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 28ba3dc25..ce70e9d9a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,13 +19,16 @@ pipeline { steps { echo 'Running build automation' sh ''' - ./mvnw package + ./mvnw package ''' } } stage('CREATE ARTIFACT') { steps { - archiveArtifacts artifacts: 'target/spring-petclinic-2.4.2.jar', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true + echo 'Creating Docker Image...'' + sh ''' + docker build -t rodley/pet-clinic:${BUILD_NUMBER} -f Dockerdile + ''' } } stage('Deploy') {