Console Output
02:45:47 [2025-11-24T02:45:47.716Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
02:45:47 [2025-11-24T02:45:47.717Z] Affected argument(s) used the following variable(s): [POSTGRES_DB]
02:45:47 [2025-11-24T02:45:47.717Z] See https://jenkins.io/redirect/groovy-string-interpolation for details.
02:45:47 [2025-11-24T02:45:47.980Z] + export POSTGRES_DB=****
02:45:47 [2025-11-24T02:45:47.980Z] + export POSTGRES_USER=****
02:45:47 [2025-11-24T02:45:47.980Z] + export PGPASSWORD=****
02:45:47 [2025-11-24T02:45:47.980Z] + mkdir -p jenkins_backups
02:45:47 [2025-11-24T02:45:47.980Z] + docker exec -e PGPASSWORD=**** ****-**** pg_dump -h localhost -U **** -d **** --format=custom --compress=9 --file=/tmp/jenkins_backup_20251124_024547.sql
02:45:48 [2025-11-24T02:45:48.893Z] + docker cp ****-****:/tmp/jenkins_backup_20251124_024547.sql jenkins_backups/
02:45:48 [2025-11-24T02:45:48.893Z] + cd jenkins_backups
02:45:48 [2025-11-24T02:45:48.893Z] + sha256sum jenkins_backup_20251124_024547.sql
02:45:48 [2025-11-24T02:45:48.893Z] + echo ✅ Backup created: jenkins_backup_20251124_024547.sql
02:45:48 [2025-11-24T02:45:48.893Z] ✅ Backup created: jenkins_backup_20251124_024547.sql
02:45:48 [2025-11-24T02:45:48.893Z] + ls -lh jenkins_backup_20251124_024547.sql
02:45:48 [2025-11-24T02:45:48.894Z] -rw-r--r-- 1 root root 6.9K Nov 24 02:45 jenkins_backup_20251124_024547.sql