Commit 4ec05df7 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch...

Merge branch '231407-review-deploy-job-failed-with-failed-to-disable-sign-up-but-was-actually-disabled' into 'master'

Resolve "review-deploy job failed with failed to disable sign up, but was actually disabled"

Closes #231407

See merge request gitlab-org/gitlab!38066
parents 57e71eb4 d5c77bfe
......@@ -147,9 +147,9 @@ function disable_sign_ups() {
run_task "${ruby_cmd}"
# Disable sign-ups
curl --silent --show-error --request PUT --header "PRIVATE-TOKEN: ${REVIEW_APPS_ROOT_TOKEN}" "${CI_ENVIRONMENT_URL}/api/v4/application/settings?signup_enabled=false"
retry 'curl --silent --show-error --request PUT --header "PRIVATE-TOKEN: ${REVIEW_APPS_ROOT_TOKEN}" "${CI_ENVIRONMENT_URL}/api/v4/application/settings?signup_enabled=false"'
local signup_enabled=$(curl --silent --show-error --request GET --header "PRIVATE-TOKEN: ${REVIEW_APPS_ROOT_TOKEN}" "${CI_ENVIRONMENT_URL}/api/v4/application/settings" | jq ".signup_enabled")
local signup_enabled=$(retry 'curl --silent --show-error --request GET --header "PRIVATE-TOKEN: ${REVIEW_APPS_ROOT_TOKEN}" "${CI_ENVIRONMENT_URL}/api/v4/application/settings" | jq ".signup_enabled"')
if [[ "${signup_enabled}" == "false" ]]; then
echoinfo "Sign-ups have been disabled successfully."
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment