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