From 1fef4c921e04f395dfdcdaa9ef12e107cb945f87 Mon Sep 17 00:00:00 2001 From: prasannakumar Date: Fri, 21 Jun 2024 15:49:20 +0530 Subject: [PATCH] added docker stage --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5019cb0c5..009c04432 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { environment { SONAR_AUTH_TOKEN = credentials('SONAR_AUTH_TOKEN') // Assumes you have stored your token in Jenkins Credentials - DOCKER_REGISTRY_CREDENTIALS = credentials('prasannakumarsinganamalla431') + DOCKER_REGISTRY_CREDENTIALS = credentials('Docker_cred') } @@ -66,7 +66,7 @@ pipeline { steps { script { - withDockerRegistry(credentialsId:"${DOCKER_REGISTRY_CREDENTIALS}" ,registryUrl: "https://hub.docker.com/") { + withDockerRegistry(credentialsId:"${DOCKER_REGISTRY_CREDENTIALS}") { sh "docker build -t prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER} ."