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

+ 1 - 1
Jenkinsfile

@@ -38,7 +38,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}"