formation 1 rok pred
rodič
commit
4523f6cce6
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -34,7 +34,7 @@ node{
 	
 	
      stage('Push Docker images to Nexus') {
      stage('Push Docker images to Nexus') {
         withCredentials([usernamePassword(credentialsId: 'nexus', usernameVariable: 'admin', passwordVariable: 'azerty10')]) {
         withCredentials([usernamePassword(credentialsId: 'nexus', usernameVariable: 'admin', passwordVariable: 'azerty10')]) {
-            sh 'docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD nexus.foodgame.fr:8443'
+            sh 'docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} nexus.foodgame.fr:8443'
             sh 'docker-compose push'
             sh 'docker-compose push'
         }
         }
     }
     }