From 5ef77a9eefaf2befa7f252f95e5b6ed6e94f6b82 Mon Sep 17 00:00:00 2001 From: AlexeerCT Date: Thu, 2 Apr 2026 10:15:08 -0500 Subject: [PATCH] Add schema creation commands in Jenkinsfile for database setup Updated the Jenkinsfile to include commands for creating necessary database schemas (core, a24, a76, and public) during the setup process, ensuring the database is properly initialized for testing. --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c16620cc..cdd45885 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -88,6 +88,12 @@ pipeline { sleep 2 done docker exec "$DB_CONTAINER" pg_isready -U "$DB_USER" -d "$DB_NAME" + docker exec "$DB_CONTAINER" psql -U "$DB_USER" -d "$DB_NAME" -v ON_ERROR_STOP=1 -c " + CREATE SCHEMA IF NOT EXISTS core; + CREATE SCHEMA IF NOT EXISTS a24; + CREATE SCHEMA IF NOT EXISTS a76; + CREATE SCHEMA IF NOT EXISTS public; + " docker rm -f "$PY_CONTAINER" >/dev/null 2>&1 || true docker run -d --name "$PY_CONTAINER" --network "$TEST_NETWORK" python:3.12-slim sleep infinity