formation hai 1 ano
pai
achega
4523f6cce6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -34,7 +34,7 @@ node{
 	
      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 login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} nexus.foodgame.fr:8443'
             sh 'docker-compose push'
         }
     }