From 6586b04dfc7c185e4ceeb2b54bcd755cb78f474a Mon Sep 17 00:00:00 2001 From: A-hash-bit <58227483+A-hash-bit@users.noreply.github.com> Date: Tue, 16 Aug 2022 10:10:23 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f18531c6..6b2e303c4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,13 @@ pipeline{ sh "mvn clean package" } } - + stage('Docker Build') { + agent any + steps { + echo "========executing docker build========" + sh 'docker build -t amar/petclinic:latest .' + } + } } post{