diff --git a/CI/test-reverseproxy.sh b/CI/test-reverseproxy.sh index 1cfb0890..b15a0327 100755 --- a/CI/test-reverseproxy.sh +++ b/CI/test-reverseproxy.sh @@ -18,7 +18,7 @@ PROXY=$(docker run -d -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx- PROXY_IP=$(docker inspect ${PROXY} | jq -r .[0].NetworkSettings.IPAddress) ## give it all time to start up -sleep 2 +sleep 5 ## Test the website diff --git a/Jenkinsfile b/Jenkinsfile index 07ed1147..03d9581c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ node ('Docker') { script: "docker inspect ${MiServer.id} | jq .[0].NetworkSettings.IPAddress | sed 's/\"//g'", returnStdout: true ).trim() - sh "for F in `ls ${WORKSPACE}/CI/test-*.sh`; do /bin/bash \${F} ${DOCKER_IP}; done" + sh "sleep 10 && for F in `ls ${WORKSPACE}/CI/test-*.sh`; do /bin/bash \${F} ${DOCKER_IP}; done" //${WORKSPACE}/CI/test-pages.sh ${DOCKER_IP}" MiServer.stop() } catch (Exception e) {