From 0c91fc6228539a550779f857e969abe7e89f8cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Cunha?= Date: Fri, 31 May 2019 17:54:51 +0100 Subject: Trying to log pods --- scripts/review_apps/review-apps.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh index 938c436aece..ed5ae109e9e 100755 --- a/scripts/review_apps/review-apps.sh +++ b/scripts/review_apps/review-apps.sh @@ -206,7 +206,7 @@ function deploy() { HELM_CMD=$(cat << EOF helm upgrade --install \ --wait \ - --timeout 900 \ + --timeout 600 \ --set global.appConfig.enableUsagePing=false \ --set releaseOverride="$CI_ENVIRONMENT_SLUG" \ --set global.hosts.hostSuffix="$HOST_SUFFIX" \ @@ -252,18 +252,18 @@ EOF echoinfo "Deploying with:" echoinfo "${HELM_CMD}" - # eval $HELM_CMD || kubectl -n ${KUBE_NAMESPACE} get events --sort-by='{.lastTimestamp}' || true - eval $HELM_CMD || true + eval $HELM_CMD || kubectl -n ${KUBE_NAMESPACE} get events --sort-by='{.lastTimestamp}' || true + # eval $HELM_CMD || true } function wait_for_review_app_to_be_accessible() { # In case the Review App isn't completely available yet. Keep trying for 5 minutes. local interval=5 local elapsed_seconds=0 - local max_seconds=$((10 * 60)) + local max_seconds=$((5 * 60)) while true; do local review_app_http_code - review_app_http_code=$(curl --silent --output /dev/null --max-time 10 --write-out "%{http_code}" "${CI_ENVIRONMENT_URL}/users/sign_in") + review_app_http_code=$(curl --silent --output /dev/null --max-time 5 --write-out "%{http_code}" "${CI_ENVIRONMENT_URL}/users/sign_in") if [[ "${review_app_http_code}" -eq "200" ]] || [[ "${elapsed_seconds}" -gt "${max_seconds}" ]]; then break fi -- cgit v1.2.1