Merge "Add --fail flag to zuul status backup curl"

This commit is contained in:
Zuul 2020-04-29 23:05:52 +00:00 committed by Gerrit Code Review
commit 8392caaa69

View File

@ -9,7 +9,7 @@
state: present
user: root
job: |
timeout -k 5 10 curl https://zuul.opendev.org/api/tenant/{{ tenant }}/status -o /var/lib/zuul/backup/{{ tenant }}_status_$(date +\%s).json 2>/dev/null
timeout -k 5 10 curl https://zuul.opendev.org/api/tenant/{{ tenant }}/status --fail -o /var/lib/zuul/backup/{{ tenant }}_status_$(date +\%s).json 2>/dev/null
# Rotate backups and keep no more than 120 files -- or 2 hours worth of
# backup if Zuul has 100% uptime.