formation hai 1 ano
pai
achega
762176bd25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -31,7 +31,7 @@ node {
        
 
         // Étape de connexion au registre Docker Nexus
-        sh "docker login -u ${nexusUsername} -p ${nexusPassword} ${nexusUrl}"
+        sh "docker login --username ${nexusUsername} --password-stdin ${nexusPassword} ${nexusUrl}:443"
 
         // Étape de balisage de l'image Docker pour le registre Nexus
         sh "docker tag ${dockerImageName}:${dockerImageTag} ${nexusUrl}/repository/${nexusRepository}/${dockerImageName}:${dockerImageTag}"