Skip to content
Snippets Groups Projects
Commit 0439e0b74868 authored by Andrew Patterson's avatar Andrew Patterson
Browse files

Merge branch '8718-clear-cache-for-all-builds' into 'master'

Clear cache of all builds in triggered pipelines periodically

Closes #8718

See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7919



Merged-by: default avatarAndrew Patterson <apatterson@gitlab.com>
Approved-by: default avatarRobert Marshall <rmarshall@gitlab.com>
Approved-by: default avatarAndrew Patterson <apatterson@gitlab.com>
Co-authored-by: default avatarBalasankar 'Balu' C <balasankar@gitlab.com>
No related branches found
No related tags found
3 merge requests!165Merge upstream Omnibus GitLab into Omnibus Heptapod,!164Merge upstream Omnibus GitLab into Omnibus Heptapod,!163Merge upstream Omnibus GitLab into Omnibus Heptapod
......@@ -65,6 +65,9 @@
rules:
- !reference [.default_rules, rules]
- if: '$PIPELINE_TYPE =~ /_(NIGHTLY|BRANCH)_BUILD_PIPELINE$/'
# Include it in TRIGGER_CACHE_UPDATE_PIPELINE pipeline cache used by
# nightlies and triggered builds are refreshed periodically
- if: '$PIPELINE_TYPE == "TRIGGER_CACHE_UPDATE_PIPELINE"'
.fips_branch_template:
extends: .branch_template
......@@ -73,6 +76,9 @@
rules:
- !reference [.default_rules, rules]
- if: '$PIPELINE_TYPE == "EE_NIGHTLY_BUILD_PIPELINE"'
# Include it in TRIGGER_CACHE_UPDATE_PIPELINE pipeline cache used by
# nightlies and triggered builds are refreshed periodically
- if: '$PIPELINE_TYPE == "TRIGGER_CACHE_UPDATE_PIPELINE"'
- if: '$PIPELINE_TYPE == "EE_BRANCH_BUILD_PIPELINE"'
when: manual
allow_failure: true
......@@ -92,6 +98,9 @@
- if: '$PIPELINE_TYPE == "CE_BRANCH_BUILD_PIPELINE"'
- if: '$PIPELINE_TYPE == "CE_NIGHTLY_BUILD_PIPELINE"'
- if: '$PIPELINE_TYPE == "EE_BRANCH_BUILD_PIPELINE" && $CI_PIPELINE_SOURCE == "parent_pipeline"'
# Include it in TRIGGER_CACHE_UPDATE_PIPELINE pipeline cache used by
# nightlies and triggered builds are refreshed periodically
- if: '$PIPELINE_TYPE == "TRIGGER_CACHE_UPDATE_PIPELINE"'
.tag_template:
stage: package
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment