← azuredeploy

Pipeline

a653134fc076ec08e6cb31604d882b0552ce7dc2 · ovidiucs · Mar 15, 2024 18:28

+1 −1 · 1 file changed

  • jenkins/Jenkinsfile +1 −1
diff --git a/jenkins/Jenkinsfile b/jenkins/Jenkinsfile
index c688331..b56031d 100644
--- a/jenkins/Jenkinsfile
+++ b/jenkins/Jenkinsfile
@@ -34,7 +34,7 @@ pipeline {
                     def dockerRegistryUrl = env.DOCKER_REGISTRY_URL
                     docker.withRegistry(dockerRegistryUrl, 'myACRCredentials') {
                         // Build Docker image
-                        docker.withTool("dockerInstall"){DOCKER_IMAGE_NAME, "-f ${DOCKERFILE_PATH} ."}
+                        docker.withTool("dockerInstall"){docker build -t DOCKER_IMAGE_NAME -f ${DOCKERFILE_PATH} }
                     }
                 }
             }