formation 1 ano atrás
pai
commit
b135a6ff17
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -32,8 +32,8 @@ node{
     
 	stage('Push Docker images to Nexus') {
     withCredentials([usernamePassword(credentialsId: 'nexus', usernameVariable: 'admin', passwordVariable: 'azerty10')]) {
-        sh 'echo ${azerty10} | docker login -u ${admin} --password-stdin https://nexus.foodgame.fr/repository/docker-fatboar-registry/'
-        sh 'docker-compose push'
+        sh "docker login -u ${admin} --password ${azerty10} https://nexus.foodgame.fr/repository/docker-fatboar-registry/"
+        sh "docker-compose push"
     }
 }
 
@@ -41,6 +41,7 @@ node{
 
 
 
+
 	
 
     stage('Build Docker MEAN Stack(PreProduction Deployment)')