Read about our upcoming Code of Conduct on this issue

_ci_cd.html.haml 4.05 KB
Newer Older
1
= form_for @application_setting, url: ci_cd_admin_application_settings_path(anchor: 'js-ci-cd-settings'), html: { class: 'fieldset-form' } do |f|
2
3
4
  = form_errors(@application_setting)

  %fieldset
5
    .form-group
6
7
8
9
10
      .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
11
              = s_('CICD|Default to Auto DevOps pipeline for all projects')
12
13
14
            .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'
15
    .form-group
16
      = f.label :auto_devops_domain, s_('AdminSettings|Auto DevOps domain'), class: 'label-bold'
17
18
19
20
21
22
23
      = f.text_field :auto_devops_domain, class: 'form-control', placeholder: 'domain.com'
      .form-text.text-muted
        = s_("AdminSettings|Specify a domain to use by default for every project's Auto Review Apps and Auto Deploy stages.")
    .form-group
      .form-check
        = f.check_box :shared_runners_enabled, class: 'form-check-input'
        = f.label :shared_runners_enabled, class: 'form-check-label' do
24
25
26
27
          = s_("AdminSettings|Enable shared runners for new projects")

    = render_if_exists 'admin/application_settings/shared_runners_minutes_setting', form: f

28
    .form-group
29
      = f.label :shared_runners_text, class: 'label-bold'
30
      = f.text_area :shared_runners_text, class: 'form-control', rows: 4
31
      .form-text.text-muted= _("Markdown enabled")
32
    .form-group
33
      = f.label :max_artifacts_size, _('Maximum artifacts size (MB)'), class: 'label-bold'
34
35
      = f.number_field :max_artifacts_size, class: 'form-control'
      .form-text.text-muted
36
        = _("Set the maximum file size for each job's artifacts")
37
        = link_to icon('question-circle'), help_page_path('user/admin_area/settings/continuous_integration', anchor: 'maximum-artifacts-size-core-only')
38
    .form-group
39
      = f.label :default_artifacts_expire_in, _('Default artifacts expiration'), class: 'label-bold'
40
41
      = f.text_field :default_artifacts_expire_in, class: 'form-control'
      .form-text.text-muted
42
        = _("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>4 mins 2 sec</code>, <code>2h42min</code>.").html_safe
43
        = link_to icon('question-circle'), help_page_path('user/admin_area/settings/continuous_integration', anchor: 'default-artifacts-expiration')
44
    .form-group
45
      = f.label :archive_builds_in_human_readable, _('Archive jobs'), class: 'label-bold'
46
47
      = f.text_field :archive_builds_in_human_readable, class: 'form-control', placeholder: 'never'
      .form-text.text-muted
48
        = _("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>15 days</code>, <code>1 month</code>, <code>2 years</code>.").html_safe
49
50
51
52
53
54
55
    .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')
      .form-text.text-muted
        = s_('AdminSettings|When creating a new environment variable it will be protected by default.')
56
57
58
59
60
61
    .form-group
      = f.label :ci_config_path, _('Default CI configuration path'), class: 'label-bold'
      = f.text_field :default_ci_config_path, class: 'form-control', placeholder: '.gitlab-ci.yml'
      %p.form-text.text-muted
        = _("The default CI configuration path for new projects.").html_safe
        = link_to icon('question-circle'), help_page_path('user/project/pipelines/settings', anchor: 'custom-ci-config-path'), target: '_blank'
62

63
  = f.submit _('Save changes'), class: "btn btn-success"