From f8d5adce372ebbac2dd1036f658c32961f5019eb Mon Sep 17 00:00:00 2001
From: Payton Burdette <pburdette@gitlab.com>
Date: Wed, 18 Sep 2024 18:55:05 +0000
Subject: [PATCH] Add artifacts archive setting

Adds a new setting to configure
artifacts archive size via the admin UI.

Changelog: added
---
 app/views/admin/application_settings/_ci_cd.html.haml | 5 +++++
 locale/gitlab.pot                                     | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/app/views/admin/application_settings/_ci_cd.html.haml b/app/views/admin/application_settings/_ci_cd.html.haml
index ca6211e96ff65..6235d89bc4f19 100644
--- a/app/views/admin/application_settings/_ci_cd.html.haml
+++ b/app/views/admin/application_settings/_ci_cd.html.haml
@@ -29,6 +29,11 @@
         .form-text.text-muted
           = _("The maximum file size for job artifacts.")
           = link_to _('Learn more.'), help_page_path('administration/settings/continuous_integration', anchor: 'maximum-artifacts-size')
+      .form-group
+        = f.label :max_artifacts_content_include_size, _('Maximum artifacts archive size (bytes)'), class: 'label-bold'
+        = f.number_field :max_artifacts_content_include_size, class: 'form-control gl-form-input'
+        .form-text.text-muted
+          = _("The maximum file size for job artifacts archive.")
       .form-group
         = f.label :default_artifacts_expire_in, _('Default artifacts expiration'), class: 'label-bold'
         = f.text_field :default_artifacts_expire_in, class: 'form-control gl-form-input'
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index 321ac01bcbbb7..164c84e818ab0 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -32905,6 +32905,9 @@ msgstr ""
 msgid "Maximum allowed lifetime for SSH keys (days)"
 msgstr ""
 
+msgid "Maximum artifacts archive size (bytes)"
+msgstr ""
+
 msgid "Maximum artifacts size"
 msgstr ""
 
@@ -54723,6 +54726,9 @@ msgstr ""
 msgid "The maximum file size allowed is %{size}."
 msgstr ""
 
+msgid "The maximum file size for job artifacts archive."
+msgstr ""
+
 msgid "The maximum file size for job artifacts."
 msgstr ""
 
-- 
GitLab