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