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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2019-04-10 12:04:51 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2019-04-10 12:51:19 +0300
commit2b9492a292d389d8390a9eca6a80e730ab7b6f1e (patch)
tree5f494717d67447249f002b56cb7c84c0a4f2eb19 /app/services/git
parente861af409df4139e2a1c7434b1ca490710c786f1 (diff)
Process at most 4 pipelines during push
This adds a limitation that we will try to create pipeline for at most 4 first changes (branches and tags). This does not affect processing of Pipelines for Merge Requests, as each updated MR will have associated pipeline created.
Diffstat (limited to 'app/services/git')
-rw-r--r--app/services/git/base_hooks_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/git/base_hooks_service.rb b/app/services/git/base_hooks_service.rb
index fce4040e390..a8478e3a904 100644
--- a/app/services/git/base_hooks_service.rb
+++ b/app/services/git/base_hooks_service.rb
@@ -51,6 +51,8 @@ module Git
end
def create_pipelines
+ return unless params.fetch(:create_pipelines, true)
+
Ci::CreatePipelineService
.new(project, current_user, push_data)
.execute(:push, pipeline_options)