From cf7aaa8ca78209b2c135a1f276bd19f9ce42c06a Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Thu, 23 Apr 2026 10:21:26 +0200 Subject: [PATCH] introduce ci env variable Signed-off-by: Christian Richter --- .woodpecker.star | 1 + opencloud/cmd/opencloud/main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.star b/.woodpecker.star index e142a2ac43..4eebc60343 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -2316,6 +2316,7 @@ def opencloudServer(storage = "decomposed", depends_on = [], deploy_type = "", e user = "0:0" container_name = OC_SERVER_NAME environment = { + "OC_CI_ENVIRONMENT": "true", "OC_URL": OC_URL, "OC_CONFIG_DIR": "/root/.opencloud/config", # needed for checking config later "STORAGE_USERS_DRIVER": "%s" % storage, diff --git a/opencloud/cmd/opencloud/main.go b/opencloud/cmd/opencloud/main.go index 4b2d7a29f9..69aac9a23a 100644 --- a/opencloud/cmd/opencloud/main.go +++ b/opencloud/cmd/opencloud/main.go @@ -16,7 +16,7 @@ func main() { // INFO: this is a hotfix, we need to replace suture and wait for nats to // gracefully shutdown using rungroups // see https://github.com/opencloud-eu/opencloud/issues/2282 - if os.Getenv("TEST_SERVER_URL") == "" { + if os.Getenv("OC_CI_ENVIRONMENT") == "true" { fmt.Println("Waiting for 30 seconds before exiting...") time.Sleep(30 * time.Second) fmt.Println("Exiting...")