From e2092ba64a518333d2789f6dad41205485b84d35 Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Thu, 3 Apr 2025 14:45:17 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a5eb3d1..b8ceaa5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,7 +39,6 @@ pipeline { script { withCredentials([usernamePassword(credentialsId: 'gitea-oauth-open-webui-client-id-secret', passwordVariable: 'CLIENT_SECRET', usernameVariable: 'CLIENT_ID'), string(credentialsId: 'OpenAI-API-Token', variable: 'OPEN_AI_TOKEN'), usernamePassword(credentialsId: 'ldap-bind-auth-user', passwordVariable: 'AD_BIND_PASSWORD', usernameVariable: 'AD_BIND_USER')]) { sh """ - export PG_PASS=\$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c32) COMPOSE_PROJECT_NAME=openwebui \ CHROMAUI=${CHROMAUI} \ @@ -48,6 +47,7 @@ pipeline { OLLAMA=${OLLAMA} \ OPENWEBUI=${OPENWEBUI} \ + export PG_PASS=\$(openssl rand -base64 48 | tr -dc 'A-Za-z0-9' | head -c32) docker compose pull COMPOSE_PROJECT_NAME=openwebui \ CHROMADB=${CHROMADB} \ @@ -57,7 +57,7 @@ pipeline { OPENWEBUI=${OPENWEBUI} \ docker compose up -d --force-recreate - echo "ALTER USER joplin WITH PASSWORD '\$PG_PASS';" | docker exec -i webuipostgres psql -U joplin -d joplindb + echo "ALTER USER openwebui_user WITH PASSWORD '\$PG_PASS';" | docker exec -i openwebui_postgres_db psql -U openwebui_user -d openwebui_db """ }