ci: Add a default retry policy for jobs

Automatically retry if it's a system failure or similar

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1503>
This commit is contained in:
Jordan Petridis 2024-08-21 17:14:45 +03:00
parent a8234a67d2
commit e8797c95e7

View file

@ -42,6 +42,14 @@ workflow:
default:
interruptible: true
# Auto-retry jobs in case of infra failures
retry:
max: 1
when:
- 'runner_system_failure'
- 'stuck_or_timeout_failure'
- 'scheduler_failure'
- 'api_failure'
variables:
FDO_UPSTREAM_REPO: gstreamer/gstreamer-rs