Console Output
15:09:53 [2025-11-14T15:09:53.819Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
15:09:53 [2025-11-14T15:09:53.819Z] Affected argument(s) used the following variable(s): [POSTGRES_HOST, PG_USER, PG_DB]
15:09:53 [2025-11-14T15:09:53.819Z] See https://jenkins.io/redirect/groovy-string-interpolation for details.
15:09:54 [2025-11-14T15:09:54.082Z] + export PG_DB=****
15:09:54 [2025-11-14T15:09:54.082Z] + export PG_USER=****
15:09:54 [2025-11-14T15:09:54.082Z] + export POSTGRES_HOST=****
15:09:54 [2025-11-14T15:09:54.082Z] + export PGPASSWORD=****
15:09:54 [2025-11-14T15:09:54.082Z] + mkdir -p jenkins_backups
15:09:54 [2025-11-14T15:09:54.082Z] + docker exec -e PGPASSWORD=**** **** pg_dump -h localhost -U **** -d **** --format=custom --compress=9 --file=/tmp/****_backup_20251114_150953.sql
15:09:54 [2025-11-14T15:09:54.634Z] + docker cp ****:/tmp/****_backup_20251114_150953.sql jenkins_backups/
15:09:54 [2025-11-14T15:09:54.885Z] + cd jenkins_backups
15:09:54 [2025-11-14T15:09:54.885Z] + sha256sum ****_backup_20251114_150953.sql
15:09:54 [2025-11-14T15:09:54.885Z] + echo ✅ Backup created: ****_backup_20251114_150953.sql
15:09:54 [2025-11-14T15:09:54.885Z] ✅ Backup created: ****_backup_20251114_150953.sql
15:09:54 [2025-11-14T15:09:54.885Z] + ls -lh ****_backup_20251114_150953.sql
15:09:54 [2025-11-14T15:09:54.885Z] -rw-r--r-- 1 root root 1.6K Nov 14 15:09 ****_backup_20251114_150953.sql