formation 4 years ago
parent
commit
9cc47c4cca
1 changed files with 7 additions and 2 deletions
  1. 7 2
      Jenkinsfile

+ 7 - 2
Jenkinsfile

@@ -23,7 +23,12 @@ node{
 		docker.build("server-apache-preprod", "--no-cache --label traefik.enable=true --label traefik.http.routers.server-apache-preprod.rule='Host(`angular-preprod.foodgame.fr`)' --label traefik.http.routers.server-apache-preprod.entrypoints=websecure --label traefik.http.routers.server-apache-preprod.tls.certresolver=myresolver -f build/docker/httpd/Dockerfile .")
 	}
 
-    stage('Waiting Container'){
+    stage("Run Container apache preprod")
+	{
+		containerApache=imageApache.run("--name server-apache-preprod --link server-mysql-preprod:mysql --network=web")
+	}
+
+    /*stage('Waiting Container'){
         waitUntil{
             try{
                 sh "docker exec ${containerApache.id} php -v"
@@ -32,7 +37,7 @@ node{
             return false
         }
                   }
-    }  
+    }*/  
     stage('stage 1bis'){
         sh 'docker -v'
         sh 'docker ps'