2019-09-30 21:07:59 +05:30
= form_for @application_setting, url: ci_cd_admin_application_settings_path(anchor: 'js-ci-cd-settings'), html: { class: 'fieldset-form' } do |f|
2018-05-09 12:01:36 +05:30
= form_errors(@application_setting)
%fieldset
.form-group
2018-11-18 11:00:15 +05:30
.card.auto-devops-card
.card-body
.form-check
= f.check_box :auto_devops_enabled, class: 'form-check-input'
= f.label :auto_devops_enabled, class: 'form-check-label' do
2019-07-07 11:18:12 +05:30
= s_('CICD|Default to Auto DevOps pipeline for all projects')
2018-11-18 11:00:15 +05:30
.form-text.text-muted
= s_('CICD|The Auto DevOps pipeline will run if no alternative CI configuration file is found.')
= link_to _('More information'), help_page_path('topics/autodevops/index.md'), target: '_blank'
2018-05-09 12:01:36 +05:30
.form-group
2019-03-02 22:35:43 +05:30
= f.label :auto_devops_domain, s_('AdminSettings|Auto DevOps domain'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :auto_devops_domain, class: 'form-control gl-form-input', placeholder: 'domain.com'
2018-11-08 19:23:39 +05:30
.form-text.text-muted
= s_("AdminSettings|Specify a domain to use by default for every project's Auto Review Apps and Auto Deploy stages.")
2018-05-09 12:01:36 +05:30
.form-group
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :shared_runners_enabled, class: 'form-check-input'
= f.label :shared_runners_enabled, class: 'form-check-label' do
2019-07-07 11:18:12 +05:30
= s_("AdminSettings|Enable shared runners for new projects")
= render_if_exists 'admin/application_settings/shared_runners_minutes_setting', form: f
2018-05-09 12:01:36 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :shared_runners_text, class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_area :shared_runners_text, class: 'form-control gl-form-input', rows: 4
2019-07-07 11:18:12 +05:30
.form-text.text-muted= _("Markdown enabled")
2018-05-09 12:01:36 +05:30
.form-group
2019-07-07 11:18:12 +05:30
= f.label :max_artifacts_size, _('Maximum artifacts size (MB)'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :max_artifacts_size, class: 'form-control gl-form-input'
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2019-07-07 11:18:12 +05:30
= _("Set the maximum file size for each job's artifacts")
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'), help_page_path('user/admin_area/settings/continuous_integration', anchor: 'maximum-artifacts-size')
2018-05-09 12:01:36 +05:30
.form-group
2019-07-07 11:18:12 +05:30
= f.label :default_artifacts_expire_in, _('Default artifacts expiration'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :default_artifacts_expire_in, class: 'form-control gl-form-input'
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2020-10-24 23:57:45 +05:30
= html_escape(_("Set the default expiration time for each job's artifacts. 0 for unlimited. The default unit is in seconds, but you can define an alternative. For example: %{code_open}4 mins 2 sec%{code_close}, %{code_open}2h42min%{code_close}.")) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'), help_page_path('user/admin_area/settings/continuous_integration', anchor: 'default-artifacts-expiration')
2021-03-11 19:13:27 +05:30
.form-group
.form-check
= f.check_box :keep_latest_artifact, class: 'form-check-input'
= f.label :keep_latest_artifact, class: 'form-check-label' do
%strong
= s_('AdminSettings|Keep the latest artifacts for all jobs in the latest successful pipelines')
.form-text.text-muted
= s_('AdminSettings|The latest artifacts for all jobs in the most recent successful pipelines in each project are stored and do not expire.')
2018-12-13 13:39:08 +05:30
.form-group
2019-07-07 11:18:12 +05:30
= f.label :archive_builds_in_human_readable, _('Archive jobs'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :archive_builds_in_human_readable, class: 'form-control gl-form-input', placeholder: 'never'
2018-12-13 13:39:08 +05:30
.form-text.text-muted
2020-10-24 23:57:45 +05:30
= html_escape(_("Set the duration for which the jobs will be considered as old and expired. Once that time passes, the jobs will be archived and no longer able to be retried. Make it empty to never expire jobs. It has to be no less than 1 day, for example: %{code_open}15 days%{code_close}, %{code_open}1 month%{code_close}, %{code_open}2 years%{code_close}.")) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2019-02-15 15:39:39 +05:30
.form-group
.form-check
= f.check_box :protected_ci_variables, class: 'form-check-input'
= f.label :protected_ci_variables, class: 'form-check-label' do
= s_('AdminSettings|Environment variables are protected by default')
2021-03-11 19:13:27 +05:30
.form-text.text-muted
= s_('AdminSettings|When creating a new environment variable it will be protected by default.')
2019-12-26 22:10:19 +05:30
.form-group
= f.label :ci_config_path, _('Default CI configuration path'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :default_ci_config_path, class: 'form-control gl-form-input', placeholder: '.gitlab-ci.yml'
2019-12-26 22:10:19 +05:30
%p.form-text.text-muted
= _("The default CI configuration path for new projects.").html_safe
2021-03-11 19:13:27 +05:30
= link_to sprite_icon('question-o'), help_page_path('ci/pipelines/settings', anchor: 'custom-cicd-configuration-path'), target: '_blank'
2018-05-09 12:01:36 +05:30
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"