debian-mirror-gitlab/app/views/admin/application_settings/_ci_cd.html.haml

81 lines
5.8 KiB
Text
Raw Normal View History

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
2021-09-04 01:27:46 +05:30
.form-check
= f.check_box :auto_devops_enabled, class: 'form-check-input'
= f.label :auto_devops_enabled, class: 'form-check-label' do
2021-10-27 15:23:28 +05:30
= s_('CICD|Default to Auto DevOps pipeline for all projects')
2021-09-04 01:27:46 +05:30
.form-text.text-muted
= s_('CICD|The Auto DevOps pipeline runs by default in all projects with no CI/CD configuration file.')
= link_to _('What is Auto DevOps?'), 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-10-27 15:23:28 +05:30
= f.text_field :auto_devops_domain, class: 'form-control gl-form-input', placeholder: 'example.com'
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-10-27 15:23:28 +05:30
= s_("AdminSettings|The default domain to use for Auto Review Apps and Auto Deploy stages in all projects.")
= link_to _('Learn more.'), help_page_path('topics/autodevops/stages.md', anchor: 'auto-review-apps'), target: '_blank'
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")
2021-10-27 15:23:28 +05:30
.form-text.text-muted
= s_("AdminSettings|All new projects can use the instance's shared runners by default.")
2019-07-07 11:18:12 +05:30
= render_if_exists 'admin/application_settings/shared_runners_minutes_setting', form: f
2018-05-09 12:01:36 +05:30
.form-group
2021-09-04 01:27:46 +05:30
= f.label :shared_runners_text, _('Shared runners details'), 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
2021-09-04 01:27:46 +05:30
.form-text.text-muted= _("Add a custom message with details about the instance's shared runners. The message is visible in group and project CI/CD settings, in the Runners section. Markdown is supported.")
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
2021-10-27 15:23:28 +05:30
= _("The maximum file size for job artifacts.")
= link_to _('Learn more.'), 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
2021-11-11 11:23:49 +05:30
= html_escape(_("Set the default expiration time for job artifacts in all projects. Set to %{code_open}0%{code_close} to never expire artifacts by default. If no unit is written, it defaults to seconds. For example, these are all equivalent: %{code_open}3600%{code_close}, %{code_open}60 minutes%{code_close}, or %{code_open}one hour%{code_close}.")) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2021-10-27 15:23:28 +05:30
= link_to _('Learn more.'), 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
2021-10-27 15:23:28 +05:30
= s_('AdminSettings|Keep the latest artifacts for all jobs in the latest successful pipelines')
2021-03-11 19:13:27 +05:30
.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-10-27 15:23:28 +05:30
= f.text_field :archive_builds_in_human_readable, class: 'form-control gl-form-input'
2018-12-13 13:39:08 +05:30
.form-text.text-muted
2021-10-27 15:23:28 +05:30
= html_escape(_("Jobs older than the configured time are considered expired and are archived. Archived jobs can no longer be retried. Leave empty to never archive jobs automatically. The default unit is in days, but you can use other units, for example %{code_open}15 days%{code_close}, %{code_open}1 month%{code_close}, %{code_open}2 years%{code_close}. Minimum value is 1 day.")) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/continuous_integration', anchor: 'archive-jobs')
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
2021-10-27 15:23:28 +05:30
= s_('AdminSettings|Protect CI/CD variables by default')
2021-03-11 19:13:27 +05:30
.form-text.text-muted
2021-09-04 01:27:46 +05:30
= s_('AdminSettings|New CI/CD variables in projects and groups default to protected.')
2019-12-26 22:10:19 +05:30
.form-group
2021-09-04 01:27:46 +05:30
= f.label :ci_config_path, _('Default CI/CD configuration file'), 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
2021-09-04 01:27:46 +05:30
= _("The default CI/CD configuration file and path for new projects.").html_safe
2021-09-30 23:02:18 +05:30
= link_to sprite_icon('question-o'), help_page_path('ci/pipelines/settings', anchor: 'specify-a-custom-cicd-configuration-file'), target: '_blank'
2021-11-18 22:05:49 +05:30
.form-group
.form-check
= f.check_box :suggest_pipeline_enabled, class: 'form-check-input'
= f.label :suggest_pipeline_enabled, class: 'form-check-label' do
= s_('AdminSettings|Enable pipeline suggestion banner')
.form-text.text-muted
= s_('AdminSettings|Display a banner on merge requests in projects with no pipelines to initiate steps to add a .gitlab-ci.yml file.')
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"