A Cloud Build step fails intermittently because a dependency installation occasionally times out. Which strategy most effectively keeps the pipeline deterministic while allowing recovery?

Answer

Pin dependency versions and use caching with checksum-based keys, then retry only the failing install commands

Explanation

Version pinning and checksum-keyed caching keep outcomes consistent across runs. Retrying only the failing segment reduces repeated side effects and improves determinism.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list