formation 1 rok pred
rodič
commit
9aefac6388
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      Jenkinsfile

+ 2 - 1
Jenkinsfile

@@ -33,12 +33,13 @@ node{
 	
 	stage('Push Docker images to Nexus') {
     withCredentials([usernamePassword(credentialsId: 'nexus', usernameVariable: 'admin', passwordVariable: 'azerty10')]) {
-        sh "docker login -u ${admin} -p ${azerty10} nexus.foodgame.fr"
+        sh "echo ${azerty10} | docker login -u ${admin} --password-stdin nexus.foodgame.fr"
         sh "docker-compose push"
     }
 }
 
 
+
 	
 
     stage('Build Docker MEAN Stack(PreProduction Deployment)')