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/gst-plugins-rs/-/merge_requests/1736>
This commit is contained in:
Jordan Petridis 2024-08-21 19:45:46 +03:00 committed by GStreamer Marge Bot
parent 5dc2d56c0e
commit b4f22a52ff

View file

@ -38,6 +38,14 @@ workflow:
default: default:
interruptible: true 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'
stages: stages:
- "trigger" - "trigger"