formation 1 gadu atpakaļ
vecāks
revīzija
4523f6cce6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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'
         }
     }