formation преди 1 година
родител
ревизия
220c24cc8f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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}"