summaryrefslogtreecommitdiff
path: root/scripts/review_apps/review-apps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/review_apps/review-apps.sh')
-rwxr-xr-xscripts/review_apps/review-apps.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh
index 9455e462617..938c436aece 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 600 \
+ --timeout 900 \
--set global.appConfig.enableUsagePing=false \
--set releaseOverride="$CI_ENVIRONMENT_SLUG" \
--set global.hosts.hostSuffix="$HOST_SUFFIX" \
@@ -248,9 +248,11 @@ HELM_CMD=$(cat << EOF
EOF
)
+ # GET_EVENTS_CMD="kubectl -n ${KUBE_NAMESPACE} get events --sort-by='{.lastTimestamp}'"
echoinfo "Deploying with:"
echoinfo "${HELM_CMD}"
+ # eval $HELM_CMD || kubectl -n ${KUBE_NAMESPACE} get events --sort-by='{.lastTimestamp}' || true
eval $HELM_CMD || true
}
@@ -258,10 +260,10 @@ 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=$((5 * 60))
+ local max_seconds=$((10 * 60))
while true; do
local review_app_http_code
- review_app_http_code=$(curl --silent --output /dev/null --max-time 5 --write-out "%{http_code}" "${CI_ENVIRONMENT_URL}/users/sign_in")
+ review_app_http_code=$(curl --silent --output /dev/null --max-time 10 --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