Retry on Cache Upload Failure

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

Currently, when a GitLab CI/CD job cache upload fails, the job still succeeds, meaning that dependent jobs may fail due to missing cache data. There is no built-in retry mechanism for cache uploads, leading to inconsistent pipeline behavior.

Proposal:

Extend the existing retry keyword by adding support for cache upload failures. This would allow users to configure retries specifically for cache upload issues.

  • Introduce a new retry:when condition: cache_upload_failure.
  • If a cache upload fails, the job will retry up to the configured max attempts.
Edited by 🤖 GitLab Bot 🤖