Jenkinsfile update: actively wait for KMS to be ready

pull/375/head
pabloFuente 2019-09-05 17:58:25 +02:00
parent d9df0bb022
commit 8ad13167cd
1 changed files with 1 additions and 0 deletions

View File

@ -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"