Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2023-11-30 02:50:50 +0300
committerEvan Read <eread@gitlab.com>2023-11-30 02:50:50 +0300
commite8759d006d94b9e9af5f7db8fad553d1dcbbd435 (patch)
tree87d75297a5dffe30fcfb350bc64fbc49b8996447
parent3f3ce1f0d3d7dc33b49d858bab553f2461410788 (diff)
parenta6094065e60a01a4ff0115ff9005a3bcaa626e0f (diff)
Merge branch 'axil-skip-repos-trigger' into 'main'
Change pipeline source keyword to trigger See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/4431 Merged-by: Evan Read <eread@gitlab.com> Approved-by: Marcel Amirault <mamirault@gitlab.com> Approved-by: Evan Read <eread@gitlab.com> Co-authored-by: Achilleas Pipinellis <axil@gitlab.com>
-rw-r--r--lib/tasks/build_site.rake7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/tasks/build_site.rake b/lib/tasks/build_site.rake
index 9c56d321..2fc3d620 100644
--- a/lib/tasks/build_site.rake
+++ b/lib/tasks/build_site.rake
@@ -22,7 +22,7 @@ task :clone_repositories do
# (which means BRANCH_<slug> is missing, so we default to the default
# branch, see the retrieve_branch method).
#
- next if ENV["CI_PIPELINE_SOURCE"] == 'pipeline' \
+ next if ENV["CI_PIPELINE_SOURCE"] == 'trigger' \
&& branch == product["default_branch"]
puts "\n#{TaskHelpers::COLOR_CODE_GREEN}INFO: Cloning branch '#{branch}' of #{product['repo']}..#{TaskHelpers::COLOR_CODE_RESET}"
@@ -65,6 +65,11 @@ end
desc 'Generate feature flags data file'
task :generate_feature_flags do
+ # Skip this task if the pipeline was triggered via the API (multi-project pipeline)
+ # and the TOP_UPSTREAM_SOURCE_PROJECT variable is not gitlab-org/gitlab.
+ next if ENV["CI_PIPELINE_SOURCE"] == 'trigger' \
+ && ENV["TOP_UPSTREAM_SOURCE_PROJECT"] != 'gitlab-org/gitlab'
+
feature_flags_dir = Pathname.new('..').join('gitlab', 'config', 'feature_flags').expand_path
feature_flags_ee_dir = Pathname.new('..').join('gitlab', 'ee', 'config', 'feature_flags').expand_path