From 16140402c1eaf4be9b6b752500cfe46351128314 Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Wed, 21 Jan 2026 22:21:16 +0000 Subject: [PATCH] Fix reset_stage job to read STAGE_URL from environment --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5477c41..2c03029 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -161,11 +161,16 @@ reset_stage: python - <<'RESET_SCRIPT' import httpx import sys + import os - BASE_URL = "${STAGE_URL}" + BASE_URL = os.environ.get("STAGE_URL", "") ADMIN_USER = "admin" ADMIN_PASS = "changeme123" # Default admin password + if not BASE_URL: + print("ERROR: STAGE_URL environment variable not set") + sys.exit(1) + print(f"=== Resetting stage environment at {BASE_URL} ===") client = httpx.Client(base_url=BASE_URL, timeout=60.0)