From 43b55f1f92dcf53545ff6675ba8a81a2e09c9ab0 Mon Sep 17 00:00:00 2001 From: prasannakumar Date: Fri, 21 Jun 2024 09:42:07 +0530 Subject: [PATCH] added docker stage --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 966f669d9..5019cb0c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { // Run Maven with SonarQube plugin for analysis withSonarQubeEnv('SonarQubeScanner') { sh """ - mvn sonar:sonar -Dsonar.login=${SONAR_AUTH_TOKEN} \ + mvn sonar:sonar -Dsonar.login="${SONAR_AUTH_TOKEN}" \ -Dsonar.projectName=spring-petclinic \ -Dsonar.java.binaries=. \ -Dsonar.projectKey=spring-petclinic @@ -66,7 +66,7 @@ pipeline { steps { script { - withDockerRegistry(credentialsId: 'DOCKER_REGISTRY_CREDENTIALS',registryUrl: "https://hub.docker.com/") { + withDockerRegistry(credentialsId:"${DOCKER_REGISTRY_CREDENTIALS}" ,registryUrl: "https://hub.docker.com/") { sh "docker build -t prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER} ."