From 2b3624f5740c3e8b02ddafa6328b6e04be8fa68a Mon Sep 17 00:00:00 2001 From: A-hash-bit <58227483+A-hash-bit@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:46:19 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3e4e82158..6cb4f50af 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,15 @@ pipeline{ agent any steps { echo "========executing docker build========" - sh 'docker build -t amar1doc/petclinic:latest .' + sh 'docker build -t amar1doc/petclinic:latest .' + + // with dockerhub creds to push to registory + // script{ + // withDockerRegistry(credentialsId: 'dockerhub') { + // sh 'docker build -t amar1doc/petclinic:${BUILD_NUMBER} .' + // sh 'docker push amar1doc/petclinic:${BUILD_NUMBER}' + // } + // } } } }