Started by timer Obtained Jenkinsfile from git https://github.com/DrPersico/postgresql.git [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /var/jenkins_home/workspace/postgres-deploy [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential f048d47c-1ea1-4dc6-b81c-f1ec032f0d77 > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/postgres-deploy/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/DrPersico/postgresql.git # timeout=10 Fetching upstream changes from https://github.com/DrPersico/postgresql.git > git --version # timeout=10 > git --version # 'git version 2.47.3' using GIT_ASKPASS to set credentials Github > git fetch --tags --force --progress -- https://github.com/DrPersico/postgresql.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision ade1f21be3ea31e81a6f387d5d2dfb8a955ff3da (refs/remotes/origin/main) > git config core.sparsecheckout # timeout=10 > git checkout -f ade1f21be3ea31e81a6f387d5d2dfb8a955ff3da # timeout=10 Commit message: "Fix backup container restart loop - add command separators" > git rev-list --no-walk ade1f21be3ea31e81a6f387d5d2dfb8a955ff3da # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 20 min [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] stage [Pipeline] { (Checkout) [Pipeline] script [Pipeline] { [Pipeline] cleanWs [2025-11-30T02:45:10.657Z] [WS-CLEANUP] Deleting project workspace... [2025-11-30T02:45:10.657Z] [WS-CLEANUP] Deferred wipeout is used... [2025-11-30T02:45:10.691Z] [WS-CLEANUP] done [Pipeline] checkout [2025-11-30T02:45:10.810Z] Selected Git installation does not exist. Using Default [2025-11-30T02:45:10.810Z] The recommended git tool is: NONE [2025-11-30T02:45:10.811Z] using credential f048d47c-1ea1-4dc6-b81c-f1ec032f0d77 [2025-11-30T02:45:10.828Z] Cloning the remote Git repository [2025-11-30T02:45:10.828Z] Cloning repository https://github.com/DrPersico/postgresql.git [2025-11-30T02:45:10.828Z] > git init /var/jenkins_home/workspace/postgres-deploy # timeout=10 [2025-11-30T02:45:10.857Z] Fetching upstream changes from https://github.com/DrPersico/postgresql.git [2025-11-30T02:45:10.858Z] > git --version # timeout=10 [2025-11-30T02:45:10.869Z] > git --version # 'git version 2.47.3' [2025-11-30T02:45:10.869Z] using GIT_ASKPASS to set credentials Github [2025-11-30T02:45:10.897Z] > git fetch --tags --force --progress -- https://github.com/DrPersico/postgresql.git +refs/heads/*:refs/remotes/origin/* # timeout=10 [2025-11-30T02:45:12.001Z] > git config remote.origin.url https://github.com/DrPersico/postgresql.git # timeout=10 [2025-11-30T02:45:12.012Z] > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 [2025-11-30T02:45:12.028Z] Avoid second fetch [2025-11-30T02:45:12.029Z] > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 [2025-11-30T02:45:12.041Z] Checking out Revision ade1f21be3ea31e81a6f387d5d2dfb8a955ff3da (refs/remotes/origin/main) [2025-11-30T02:45:12.041Z] > git config core.sparsecheckout # timeout=10 [2025-11-30T02:45:12.051Z] > git checkout -f ade1f21be3ea31e81a6f387d5d2dfb8a955ff3da # timeout=10 [2025-11-30T02:45:12.074Z] Commit message: "Fix backup container restart loop - add command separators" [Pipeline] echo [2025-11-30T02:45:12.174Z] โœ… Code checked out successfully [Pipeline] pwd [Pipeline] echo [2025-11-30T02:45:12.258Z] ๐Ÿ“‚ Working directory: /var/jenkins_home/workspace/postgres-deploy [Pipeline] echo [2025-11-30T02:45:12.327Z] ๐ŸŒฟ Git branch: null [Pipeline] echo [2025-11-30T02:45:12.368Z] ๐Ÿท๏ธ Git commit: ade1f21be3ea31e81a6f387d5d2dfb8a955ff3da [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Validate Configuration) [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:45:12.918Z] ๐Ÿ” Validating configuration files... [Pipeline] fileExists [Pipeline] echo [2025-11-30T02:45:13.090Z] โœ… Found: docker-compose.yml [Pipeline] fileExists [Pipeline] echo [2025-11-30T02:45:13.256Z] โœ… Found: postgresql/conf/postgresql.conf [Pipeline] fileExists [Pipeline] echo [2025-11-30T02:45:13.471Z] โœ… Found: postgresql/conf/pg_hba.conf [Pipeline] fileExists [Pipeline] echo [2025-11-30T02:45:13.752Z] โœ… Found: postgresql/init/01-init-database.sh [Pipeline] fileExists [Pipeline] echo [2025-11-30T02:45:14.070Z] โœ… Found: .env.example [Pipeline] sh [2025-11-30T02:45:14.369Z] + echo ๐Ÿณ Validating Docker Compose files... [2025-11-30T02:45:14.370Z] ๐Ÿณ Validating Docker Compose files... [2025-11-30T02:45:14.370Z] + docker-compose -f docker-compose.yml config --quiet [2025-11-30T02:45:14.370Z] time="2025-11-30T02:45:14Z" level=warning msg="The \"POSTGRES_PASSWORD\" variable is not set. Defaulting to a blank string." [2025-11-30T02:45:14.370Z] time="2025-11-30T02:45:14Z" level=warning msg="The \"POSTGRES_PASSWORD\" variable is not set. Defaulting to a blank string." [Pipeline] sh [2025-11-30T02:45:14.701Z] + echo ๐Ÿ—„๏ธ Validating PostgreSQL configuration... [2025-11-30T02:45:14.701Z] ๐Ÿ—„๏ธ Validating PostgreSQL configuration... [2025-11-30T02:45:14.701Z] + grep -E ^(shared_buffers|effective_cache_size|work_mem) postgresql/conf/postgresql.conf [2025-11-30T02:45:14.701Z] shared_buffers = 512MB # 25% of RAM [2025-11-30T02:45:14.701Z] effective_cache_size = 2GB # 50% of RAM [2025-11-30T02:45:14.701Z] work_mem = 8MB # Per connection [Pipeline] sh [2025-11-30T02:45:15.042Z] + echo ๐Ÿ” Checking Jenkins credentials configuration... [2025-11-30T02:45:15.042Z] ๐Ÿ” Checking Jenkins credentials configuration... [2025-11-30T02:45:15.042Z] + echo โ„น๏ธ Note: Make sure you have configured these Jenkins credentials: [2025-11-30T02:45:15.042Z] โ„น๏ธ Note: Make sure you have configured these Jenkins credentials: [2025-11-30T02:45:15.042Z] + echo - postgres-password (Secret Text): Your PostgreSQL password [2025-11-30T02:45:15.042Z] - postgres-password (Secret Text): Your PostgreSQL password [2025-11-30T02:45:15.042Z] + echo - postgres-db (String, optional): Database name (default: postgres) [2025-11-30T02:45:15.042Z] - postgres-db (String, optional): Database name (default: postgres) [2025-11-30T02:45:15.042Z] + echo - postgres-user (String, optional): Database user (default: postgres) [2025-11-30T02:45:15.042Z] - postgres-user (String, optional): Database user (default: postgres) [2025-11-30T02:45:15.043Z] + echo ๐Ÿ“ Configure in: Jenkins โ†’ Manage Jenkins โ†’ Manage Credentials โ†’ (global) [2025-11-30T02:45:15.043Z] ๐Ÿ“ Configure in: Jenkins โ†’ Manage Jenkins โ†’ Manage Credentials โ†’ (global) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (System Health Check) [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:45:15.893Z] ๐Ÿ” Checking system resources... [Pipeline] sh [2025-11-30T02:45:16.198Z] + docker info [2025-11-30T02:45:16.449Z] + echo โœ… Docker is running [2025-11-30T02:45:16.449Z] โœ… Docker is running [2025-11-30T02:45:16.449Z] + echo ๐Ÿ’พ Memory information: [2025-11-30T02:45:16.449Z] ๐Ÿ’พ Memory information: [2025-11-30T02:45:16.449Z] + free -h [2025-11-30T02:45:16.449Z] total used free shared buff/cache available [2025-11-30T02:45:16.449Z] Mem: 7.6Gi 3.9Gi 362Mi 644Mi 4.3Gi 3.7Gi [2025-11-30T02:45:16.449Z] Swap: 0B 0B 0B [2025-11-30T02:45:16.449Z] + echo ๐Ÿ’ฟ Disk space: [2025-11-30T02:45:16.449Z] ๐Ÿ’ฟ Disk space: [2025-11-30T02:45:16.449Z] + df -h . [2025-11-30T02:45:16.449Z] Filesystem Size Used Avail Use% Mounted on [2025-11-30T02:45:16.449Z] /dev/mmcblk0p2 29G 27G 1.4G 96% /var/jenkins_home [2025-11-30T02:45:16.449Z] + echo ๐Ÿ–ฅ๏ธ CPU information: [2025-11-30T02:45:16.449Z] ๐Ÿ–ฅ๏ธ CPU information: [2025-11-30T02:45:16.449Z] + nproc [2025-11-30T02:45:16.449Z] 4 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy PostgreSQL) [Pipeline] echo [2025-11-30T02:45:17.492Z] Warning, empty changelog. Have you run checkout? [Pipeline] echo [2025-11-30T02:45:17.573Z] Warning, empty changelog. Have you run checkout? [Pipeline] echo [2025-11-30T02:45:17.653Z] Warning, empty changelog. Have you run checkout? [Pipeline] echo [2025-11-30T02:45:17.732Z] Warning, empty changelog. Have you run checkout? [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:45:20.996Z] ๐Ÿš€ Deploying PostgreSQL... [Pipeline] sh [2025-11-30T02:45:21.303Z] + chmod +x postgresql/scripts/backup.sh postgresql/scripts/backup_check.sh postgresql/scripts/deploy.sh [Pipeline] withCredentials [2025-11-30T02:45:21.481Z] Masking supported pattern matches of $POSTGRES_PASSWORD or $POSTGRES_DB or $POSTGRES_USER [Pipeline] { [Pipeline] sh [2025-11-30T02:45:21.962Z] + echo ๐Ÿ”ง Using Jenkins credentials for deployment... [2025-11-30T02:45:21.962Z] ๐Ÿ”ง Using Jenkins credentials for deployment... [2025-11-30T02:45:21.962Z] + export POSTGRES_DB=**** [2025-11-30T02:45:21.962Z] + export POSTGRES_USER=**** [2025-11-30T02:45:21.962Z] + export POSTGRES_PASSWORD=**** [2025-11-30T02:45:21.963Z] + export PROJECT_NAME=Generic PostgreSQL [2025-11-30T02:45:21.963Z] + export PROJECT_SCHEMA=none [2025-11-30T02:45:21.963Z] + export JENKINS_WORKSPACE=/home/geeplo/services/jenkins_home/workspace/****-deploy/****ql [2025-11-30T02:45:21.963Z] + echo ๐Ÿ“‹ Deployment configuration: [2025-11-30T02:45:21.963Z] ๐Ÿ“‹ Deployment configuration: [2025-11-30T02:45:21.963Z] + echo Database: **** [2025-11-30T02:45:21.963Z] Database: **** [2025-11-30T02:45:21.963Z] + echo User: **** [2025-11-30T02:45:21.963Z] User: **** [2025-11-30T02:45:21.963Z] + echo Project: Generic PostgreSQL [2025-11-30T02:45:21.963Z] Project: Generic PostgreSQL [2025-11-30T02:45:21.963Z] + echo Schema: none [2025-11-30T02:45:21.963Z] Schema: none [2025-11-30T02:45:21.964Z] + echo Workspace: /home/geeplo/services/jenkins_home/workspace/****-deploy/****ql [2025-11-30T02:45:21.964Z] Workspace: /home/geeplo/services/jenkins_home/workspace/****-deploy/****ql [2025-11-30T02:45:21.964Z] + echo Password: [REDACTED] [2025-11-30T02:45:21.964Z] Password: [REDACTED] [2025-11-30T02:45:21.964Z] + docker-compose -f docker-compose.yml down [2025-11-30T02:45:21.964Z] Container datashield-backup Stopping [2025-11-30T02:45:39.930Z] Container datashield-backup Stopped [2025-11-30T02:45:39.930Z] Container datashield-backup Removing [2025-11-30T02:45:39.930Z] Container datashield-backup Removed [2025-11-30T02:45:39.930Z] Container ****-**** Stopping [2025-11-30T02:45:41.275Z] Container ****-**** Stopped [2025-11-30T02:45:41.275Z] Container ****-**** Removing [2025-11-30T02:45:41.275Z] Container ****-**** Removed [2025-11-30T02:45:41.275Z] Network ****-deploy_datashield-network Removing [2025-11-30T02:45:41.275Z] Network ****-deploy_datashield-network Resource is still in use [2025-11-30T02:45:41.276Z] + sed s/\${POSTGRES_DB}/****/g docker-compose.yml [2025-11-30T02:45:41.276Z] + sed -i s/\${POSTGRES_USER}/****/g docker-compose.tmp.yml [2025-11-30T02:45:41.276Z] + sed -i s/\${POSTGRES_PASSWORD}/****/g docker-compose.tmp.yml [2025-11-30T02:45:41.276Z] + sed -i s/\${PROJECT_NAME}/Generic PostgreSQL/g docker-compose.tmp.yml [2025-11-30T02:45:41.276Z] + sed -i s/\${PROJECT_SCHEMA}/none/g docker-compose.tmp.yml [2025-11-30T02:45:41.276Z] + sed -i s|\${JENKINS_WORKSPACE:-./****ql}|/home/geeplo/services/jenkins_home/workspace/****-deploy/****ql|g docker-compose.tmp.yml [2025-11-30T02:45:41.276Z] + docker-compose -f docker-compose.tmp.yml up -d **** [2025-11-30T02:45:41.276Z] Container ****-**** Creating [2025-11-30T02:45:42.189Z] **** Your kernel does not support memory limit capabilities or the cgroup is not mounted. Limitation discarded. [2025-11-30T02:45:42.189Z] **** Your kernel does not support memory soft limit capabilities or the cgroup is not mounted. Limitation discarded. [2025-11-30T02:45:42.189Z] Container ****-**** Created [2025-11-30T02:45:42.189Z] Container ****-**** Starting [2025-11-30T02:45:43.102Z] Container ****-**** Started [2025-11-30T02:45:43.102Z] + echo โณ Waiting for PostgreSQL to be ready... [2025-11-30T02:45:43.102Z] โณ Waiting for PostgreSQL to be ready... [2025-11-30T02:45:43.102Z] + docker exec ****-**** pg_isready -U **** -d **** [2025-11-30T02:45:43.356Z] + echo โณ Waiting for PostgreSQL (attempt {1..60}/60)... [2025-11-30T02:45:43.356Z] โณ Waiting for PostgreSQL (attempt {1..60}/60)... [2025-11-30T02:45:43.356Z] + sleep 2 [2025-11-30T02:45:45.842Z] + docker exec ****-**** pg_isready -U **** -d **** [2025-11-30T02:45:45.842Z] /var/run/****ql:5432 - accepting connections [2025-11-30T02:45:45.842Z] + docker-compose -f docker-compose.tmp.yml up -d ****-backup [2025-11-30T02:45:45.842Z] Container ****-**** Running [2025-11-30T02:45:45.842Z] Container datashield-backup Creating [2025-11-30T02:45:53.870Z] Container datashield-backup Created [2025-11-30T02:45:53.870Z] Container ****-**** Waiting [2025-11-30T02:45:54.121Z] Container ****-**** Healthy [2025-11-30T02:45:54.122Z] Container datashield-backup Starting [2025-11-30T02:45:55.035Z] Container datashield-backup Started [2025-11-30T02:45:55.035Z] + rm docker-compose.tmp.yml [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo [2025-11-30T02:45:55.380Z] โœ… PostgreSQL deployed successfully [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Verify Deployment) [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:45:56.247Z] ๐Ÿ” Verifying deployment... [Pipeline] withCredentials [2025-11-30T02:45:56.347Z] Masking supported pattern matches of $POSTGRES_PASSWORD or $POSTGRES_DB or $POSTGRES_USER [Pipeline] { [Pipeline] sh [2025-11-30T02:45:56.809Z] + export POSTGRES_DB=**** [2025-11-30T02:45:56.809Z] + export POSTGRES_USER=**** [2025-11-30T02:45:56.810Z] + export PGPASSWORD=**** [2025-11-30T02:45:56.810Z] + echo ๐Ÿณ Container status: [2025-11-30T02:45:56.810Z] ๐Ÿณ Container status: [2025-11-30T02:45:56.810Z] + docker ps [2025-11-30T02:45:56.810Z] + grep **** [2025-11-30T02:45:56.811Z] a64c7d4bfffb ****:18-alpine "docker-entrypoint.sโ€ฆ" 11 seconds ago Up 2 seconds 5432/tcp datashield-backup [2025-11-30T02:45:56.811Z] 0ae957e6f610 ****:18-alpine "docker-entrypoint.sโ€ฆ" 15 seconds ago Up 14 seconds (healthy) 0.0.0.0:5432->5432/tcp, [::]:5432->5432/tcp ****-**** [2025-11-30T02:45:56.811Z] + echo ๐Ÿ”— Testing database connection... [2025-11-30T02:45:56.812Z] ๐Ÿ”— Testing database connection... [2025-11-30T02:45:56.812Z] + docker exec -e PGPASSWORD=**** ****-**** psql -h localhost -U **** -d **** -c SELECT 1 as connection_test; [2025-11-30T02:45:57.364Z] connection_test [2025-11-30T02:45:57.364Z] ----------------- [2025-11-30T02:45:57.364Z] 1 [2025-11-30T02:45:57.364Z] (1 row) [2025-11-30T02:45:57.364Z] [2025-11-30T02:45:57.364Z] + echo ๐Ÿ“Š Database statistics: [2025-11-30T02:45:57.364Z] ๐Ÿ“Š Database statistics: [2025-11-30T02:45:57.365Z] + docker exec -e PGPASSWORD=**** ****-**** psql -h localhost -U **** -d **** -c [2025-11-30T02:45:57.365Z] SELECT [2025-11-30T02:45:57.365Z] 'total schemas' as check, [2025-11-30T02:45:57.365Z] COUNT(*)::text as result [2025-11-30T02:45:57.365Z] FROM information_schema.schemata [2025-11-30T02:45:57.365Z] WHERE schema_name NOT IN ('information_schema', 'pg_catalog'); [2025-11-30T02:45:57.365Z] [2025-11-30T02:45:57.617Z] check | result [2025-11-30T02:45:57.617Z] ---------------+-------- [2025-11-30T02:45:57.617Z] total schemas | 2 [2025-11-30T02:45:57.617Z] (1 row) [2025-11-30T02:45:57.617Z] [2025-11-30T02:45:57.617Z] + echo ๐Ÿ’พ Testing backup system... [2025-11-30T02:45:57.617Z] ๐Ÿ’พ Testing backup system... [2025-11-30T02:45:57.617Z] + docker exec ****-backup /scripts/backup_check.sh [2025-11-30T02:45:57.869Z] Error response from daemon: No such container: ****-backup [2025-11-30T02:45:57.869Z] + echo โš ๏ธ Backup check not available (container might be starting) [2025-11-30T02:45:57.869Z] โš ๏ธ Backup check not available (container might be starting) [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo [2025-11-30T02:45:58.240Z] โœ… Deployment verification completed [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Performance Test) [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:45:59.397Z] โšก Running performance tests... [Pipeline] withCredentials [2025-11-30T02:46:01.871Z] Masking supported pattern matches of $POSTGRES_PASSWORD or $POSTGRES_DB or $POSTGRES_USER [Pipeline] { [Pipeline] sh [2025-11-30T02:46:02.281Z] + export POSTGRES_DB=**** [2025-11-30T02:46:02.281Z] + export POSTGRES_USER=**** [2025-11-30T02:46:02.282Z] + export PGPASSWORD=**** [2025-11-30T02:46:02.282Z] + echo ๐Ÿ“ˆ Running basic performance queries... [2025-11-30T02:46:02.282Z] ๐Ÿ“ˆ Running basic performance queries... [2025-11-30T02:46:02.282Z] + docker exec -e PGPASSWORD=**** ****-**** psql -h localhost -U **** -d **** -c [2025-11-30T02:46:02.282Z] -- Test basic query performance [2025-11-30T02:46:02.282Z] EXPLAIN ANALYZE SELECT 1 as test_query; [2025-11-30T02:46:02.282Z] [2025-11-30T02:46:02.282Z] -- Test system catalog performance [2025-11-30T02:46:02.282Z] EXPLAIN ANALYZE SELECT COUNT(*) FROM information_schema.tables; [2025-11-30T02:46:02.282Z] [2025-11-30T02:46:02.282Z] -- Test connection info [2025-11-30T02:46:02.282Z] SELECT database_name, process_count FROM ( [2025-11-30T02:46:02.282Z] SELECT datname as database_name, COUNT(*) as process_count [2025-11-30T02:46:02.282Z] FROM pg_stat_activity [2025-11-30T02:46:02.282Z] GROUP BY datname [2025-11-30T02:46:02.282Z] ) as activity_stats; [2025-11-30T02:46:02.283Z] [2025-11-30T02:46:02.533Z] QUERY PLAN [2025-11-30T02:46:02.534Z] --------------------------------------------------------------------------------------- [2025-11-30T02:46:02.534Z] Result (cost=0.00..0.01 rows=1 width=4) (actual time=0.005..0.009 rows=1.00 loops=1) [2025-11-30T02:46:02.534Z] Planning: [2025-11-30T02:46:02.534Z] Buffers: shared hit=3 [2025-11-30T02:46:02.534Z] Planning Time: 0.171 ms [2025-11-30T02:46:02.534Z] Execution Time: 0.130 ms [2025-11-30T02:46:02.534Z] (5 rows) [2025-11-30T02:46:02.534Z] [2025-11-30T02:46:02.534Z] QUERY PLAN [2025-11-30T02:46:02.534Z] -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [2025-11-30T02:46:02.534Z] Aggregate (cost=71.97..71.98 rows=1 width=8) (actual time=8.733..8.795 rows=1.00 loops=1) [2025-11-30T02:46:02.534Z] Buffers: shared hit=28 read=12 [2025-11-30T02:46:02.535Z] -> Hash Left Join (cost=36.66..71.69 rows=112 width=0) (actual time=6.022..8.418 rows=215.00 loops=1) [2025-11-30T02:46:02.535Z] Hash Cond: (c.reloftype = t.oid) [2025-11-30T02:46:02.535Z] Buffers: shared hit=28 read=12 [2025-11-30T02:46:02.535Z] -> Hash Join (cost=1.09..34.58 rows=112 width=4) (actual time=0.557..2.203 rows=215.00 loops=1) [2025-11-30T02:46:02.535Z] Hash Cond: (c.relnamespace = nc.oid) [2025-11-30T02:46:02.535Z] Buffers: shared hit=22 read=1 [2025-11-30T02:46:02.535Z] -> Seq Scan on pg_class c (cost=0.00..32.67 rows=150 width=8) (actual time=0.102..0.936 rows=215.00 loops=1) [2025-11-30T02:46:02.535Z] Filter: ((relkind = ANY ('{r,v,f,p}'::"char"[])) AND (pg_has_role(relowner, 'USAGE'::text) OR has_table_privilege(oid, 'SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER'::text) OR has_any_column_privilege(oid, 'SELECT, INSERT, UPDATE, REFERENCES'::text))) [2025-11-30T02:46:02.535Z] Rows Removed by Filter: 202 [2025-11-30T02:46:02.535Z] Buffers: shared hit=13 read=1 [2025-11-30T02:46:02.536Z] -> Hash (cost=1.05..1.05 rows=3 width=4) (actual time=0.389..0.417 rows=4.00 loops=1) [2025-11-30T02:46:02.536Z] Buckets: 1024 Batches: 1 Memory Usage: 9kB [2025-11-30T02:46:02.536Z] Buffers: shared hit=9 [2025-11-30T02:46:02.536Z] -> Seq Scan on pg_namespace nc (cost=0.00..1.05 rows=3 width=4) (actual time=0.148..0.347 rows=4.00 loops=1) [2025-11-30T02:46:02.536Z] Filter: (NOT pg_is_other_temp_schema(oid)) [2025-11-30T02:46:02.536Z] Buffers: shared hit=9 [2025-11-30T02:46:02.536Z] -> Hash (cost=27.29..27.29 rows=662 width=4) (actual time=5.419..5.435 rows=639.00 loops=1) [2025-11-30T02:46:02.536Z] Buckets: 1024 Batches: 1 Memory Usage: 31kB [2025-11-30T02:46:02.536Z] Buffers: shared hit=6 read=11 [2025-11-30T02:46:02.536Z] -> Hash Join (cost=1.09..27.29 rows=662 width=4) (actual time=0.264..4.095 rows=639.00 loops=1) [2025-11-30T02:46:02.536Z] Hash Cond: (t.typnamespace = nt.oid) [2025-11-30T02:46:02.536Z] Buffers: shared hit=6 read=11 [2025-11-30T02:46:02.537Z] -> Seq Scan on pg_type t (cost=0.00..22.62 rows=662 width=8) (actual time=0.053..1.332 rows=639.00 loops=1) [2025-11-30T02:46:02.537Z] Buffers: shared hit=5 read=11 [2025-11-30T02:46:02.537Z] -> Hash (cost=1.04..1.04 rows=4 width=4) (actual time=0.167..0.173 rows=4.00 loops=1) [2025-11-30T02:46:02.537Z] Buckets: 1024 Batches: 1 Memory Usage: 9kB [2025-11-30T02:46:02.537Z] Buffers: shared hit=1 [2025-11-30T02:46:02.537Z] -> Seq Scan on pg_namespace nt (cost=0.00..1.04 rows=4 width=4) (actual time=0.123..0.133 rows=4.00 loops=1) [2025-11-30T02:46:02.537Z] Buffers: shared hit=1 [2025-11-30T02:46:02.537Z] Planning: [2025-11-30T02:46:02.537Z] Buffers: shared hit=332 read=14 [2025-11-30T02:46:02.537Z] Planning Time: 11.024 ms [2025-11-30T02:46:02.537Z] Execution Time: 10.034 ms [2025-11-30T02:46:02.537Z] (35 rows) [2025-11-30T02:46:02.537Z] [2025-11-30T02:46:02.537Z] database_name | process_count [2025-11-30T02:46:02.537Z] ---------------+--------------- [2025-11-30T02:46:02.537Z] | 8 [2025-11-30T02:46:02.537Z] **** | 1 [2025-11-30T02:46:02.537Z] authentik | 4 [2025-11-30T02:46:02.537Z] (3 rows) [2025-11-30T02:46:02.537Z] [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo [2025-11-30T02:46:02.769Z] โœ… Performance tests completed [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Create Backup) [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:46:03.483Z] ๐Ÿ’พ Creating deployment backup: jenkins_backup_20251130_024603.sql [Pipeline] withCredentials [2025-11-30T02:46:03.571Z] Masking supported pattern matches of $POSTGRES_PASSWORD or $POSTGRES_DB or $POSTGRES_USER [Pipeline] { [Pipeline] sh [2025-11-30T02:46:03.767Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure. [2025-11-30T02:46:03.767Z] Affected argument(s) used the following variable(s): [POSTGRES_DB] [2025-11-30T02:46:03.767Z] See https://jenkins.io/redirect/groovy-string-interpolation for details. [2025-11-30T02:46:04.028Z] + export POSTGRES_DB=**** [2025-11-30T02:46:04.028Z] + export POSTGRES_USER=**** [2025-11-30T02:46:04.028Z] + export PGPASSWORD=**** [2025-11-30T02:46:04.028Z] + mkdir -p jenkins_backups [2025-11-30T02:46:04.028Z] + docker exec -e PGPASSWORD=**** ****-**** pg_dump -h localhost -U **** -d **** --format=custom --compress=9 --file=/tmp/jenkins_backup_20251130_024603.sql [2025-11-30T02:46:04.940Z] + docker cp ****-****:/tmp/jenkins_backup_20251130_024603.sql jenkins_backups/ [2025-11-30T02:46:04.940Z] + cd jenkins_backups [2025-11-30T02:46:04.940Z] + sha256sum jenkins_backup_20251130_024603.sql [2025-11-30T02:46:04.940Z] + echo โœ… Backup created: jenkins_backup_20251130_024603.sql [2025-11-30T02:46:04.940Z] โœ… Backup created: jenkins_backup_20251130_024603.sql [2025-11-30T02:46:04.940Z] + ls -lh jenkins_backup_20251130_024603.sql [2025-11-30T02:46:04.940Z] -rw-r--r-- 1 root root 6.9K Nov 30 02:46 jenkins_backup_20251130_024603.sql [Pipeline] } [Pipeline] // withCredentials [Pipeline] archiveArtifacts [2025-11-30T02:46:05.358Z] Archiving artifacts [2025-11-30T02:46:05.362Z] Recording fingerprints [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:46:06.429Z] ๐Ÿ“‹ Pipeline completed with status: SUCCESS [Pipeline] echo [2025-11-30T02:46:06.483Z] [2025-11-30T02:46:06.483Z] ๐ŸŽฏ PostgreSQL Deployment Pipeline [2025-11-30T02:46:06.483Z] ๐Ÿ“… Build: 36 [2025-11-30T02:46:06.483Z] ๐ŸŒฟ Branch: null [2025-11-30T02:46:06.483Z] ๐Ÿท๏ธ Commit: ade1f21b [2025-11-30T02:46:06.483Z] โฑ๏ธ Duration: 1 min 5 sec and counting [2025-11-30T02:46:06.483Z] โœ… Status: SUCCESS [2025-11-30T02:46:06.483Z] [Pipeline] sh [2025-11-30T02:46:06.803Z] + find jenkins_backups -name *.sql -type f [2025-11-30T02:46:06.803Z] + sort -r [2025-11-30T02:46:06.804Z] + tail -n +6 [2025-11-30T02:46:06.804Z] + xargs rm -f [Pipeline] } [Pipeline] // script [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:46:07.308Z] ๐ŸŽ‰ PostgreSQL deployment successful! [Pipeline] } [Pipeline] // script [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-30T02:46:07.792Z] ๐Ÿงน Cleaning up workspace... [Pipeline] sh [2025-11-30T02:46:08.095Z] + rm -f *.tmp [Pipeline] echo [2025-11-30T02:46:08.203Z] โœ… Keeping containers running for automated backups (main branch or production) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timestamps [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS