From 8ad13167cd0dce417cc7ef33ee82b43d2acc1121 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Thu, 5 Sep 2019 17:58:25 +0200 Subject: [PATCH] Jenkinsfile update: actively wait for KMS to be ready --- openvidu-test-e2e/jenkins/Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/openvidu-test-e2e/jenkins/Jenkinsfile b/openvidu-test-e2e/jenkins/Jenkinsfile index cc74a800..9ae1e487 100644 --- a/openvidu-test-e2e/jenkins/Jenkinsfile +++ b/openvidu-test-e2e/jenkins/Jenkinsfile @@ -57,6 +57,7 @@ node('container') { sh 'openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -subj "/CN=www.mydom.com/O=My Company LTD./C=US" -keyout openvidu/openvidu-testapp/dist/key.pem -out openvidu/openvidu-testapp/dist/cert.pem' sh 'cd openvidu/openvidu-testapp/dist && http-server -S -p 4200 &> /testapp.log &' sh '/usr/bin/kurento-media-server &> /kms.log &' + sh 'until $(curl --insecure --output /dev/null --silent http://127.0.0.1:8888/kurento); do echo "Waiting for KMS..."; sleep 1; done' sh(script: '''#!/bin/bash if [ "$DOCKER_RECORDING_VERSION" != "default" ]; then echo "Using custom openvidu-recording tag: $DOCKER_RECORDING_VERSION"