formation 1 tahun lalu
induk
melakukan
aeaa7d0f4b
1 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 5 4
      Jenkinsfile

+ 5 - 4
Jenkinsfile

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