diff --git a/CleanArchitecture/Pro.Jenkinsfile b/CleanArchitecture/Pro.Jenkinsfile index fc0e51c..cfd41a7 100644 --- a/CleanArchitecture/Pro.Jenkinsfile +++ b/CleanArchitecture/Pro.Jenkinsfile @@ -27,16 +27,16 @@ pipeline { def imageName = "clean-architecture-backend:${version}" withCredentials([string(credentialsId: 'docker-registry-url', variable: 'REGISTRY_URL')]) { - def fullImageName = "[string(credentialsId: 'docker-registry-url', variable: 'REGISTRY_URL')]/${imageName}" + def fullImageName = "${REGISTRY_URL}/${imageName}" echo "FULL IMAGE NAME || FULL IMAGE NAME || FULL IMAGE NAME || FULL IMAGE NAME || FULL IMAGE NAME || FULL IMAGE NAME " echo "Full Image Name: ${fullImageName}" // Construir la imagen - sh "docker build --build-arg ENVIRONMENT=${ASP_ENVIRONMENT} -t ${imageName} ./CleanArchitecture/" + //sh "docker build --build-arg ENVIRONMENT=${ASP_ENVIRONMENT} -t ${imageName} ./CleanArchitecture/" - // Login y Push usando withDockerRegistry - docker.withRegistry("[string(credentialsId: 'docker-registry-url', variable: 'REGISTRY_URL')]", 'dockerregistryalexdev') { - sh "docker tag ${imageName} ${fullImageName}" - sh "docker push ${fullImageName}" + //// Login y Push usando withDockerRegistry + //docker.withRegistry("[string(credentialsId: 'docker-registry-url', variable: 'REGISTRY_URL')]", 'dockerregistryalexdev') { + //sh "docker tag ${imageName} ${fullImageName}" + //sh "docker push ${fullImageName}" } } }