# HG changeset patch # User Balasankar "Balu" C <balasankar@gitlab.com> # Date 1724749137 -19800 # Tue Aug 27 14:28:57 2024 +0530 # Node ID af251ab274de737ea38f5af06079e5d34d8a81ab # Parent 888c994585e19908cb1b76561c80fcc7c3d0f9a8 Do not reuse cache on trigger cache update pipeline Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com> diff --git a/gitlab-ci-config/workflow-rules.yml b/gitlab-ci-config/workflow-rules.yml --- a/gitlab-ci-config/workflow-rules.yml +++ b/gitlab-ci-config/workflow-rules.yml @@ -33,6 +33,8 @@ - if: '$PIPELINE_TYPE == null && $CI_PROJECT_PATH == $QA_PROJECT_PATH && $CACHE_UPDATE == "true"' variables: PIPELINE_TYPE: TRIGGER_CACHE_UPDATE_PIPELINE + # We want to rebuild the cache from scratch to ensure stale dependencies are cleaned up. + CACHE_POLICY: 'push' - if: '$PIPELINE_TYPE == null && $CI_PROJECT_PATH == $QA_PROJECT_PATH && $DURATION_PLOTTER == "true" && $CI_PIPELINE_SOURCE == "schedule"' variables: PIPELINE_TYPE: DURATION_PLOTTER_PIPELINE