2017-09-10 17:25:29 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2018-11-08 19:23:39 +05:30
- page_title _("CI / CD Settings")
- page_title _("CI / CD")
2017-09-10 17:25:29 +05:30
2019-07-31 22:56:46 +05:30
- expanded = expanded_by_default?
2018-05-09 12:01:36 +05:30
- general_expanded = @project.errors.empty? ? expanded : true
2017-09-10 17:25:29 +05:30
2020-05-24 23:13:21 +05:30
%section.settings#js-general-pipeline-settings.no-animate{ class: ('expanded' if general_expanded), data: { qa_selector: 'general_pipelines_settings_content' } }
2018-03-17 18:26:18 +05:30
.settings-header
%h4
2018-11-08 19:23:39 +05:30
= _("General pipelines")
2018-05-09 12:01:36 +05:30
%button.btn.js-settings-toggle{ type: 'button' }
2018-11-08 19:23:39 +05:30
= expanded ? _('Collapse') : _('Expand')
2018-03-17 18:26:18 +05:30
%p
2018-12-05 23:21:45 +05:30
= _("Customize your pipeline configuration, view your pipeline status and coverage report.")
2018-03-17 18:26:18 +05:30
.settings-content
2018-05-09 12:01:36 +05:30
= render 'form'
2017-08-17 22:00:37 +05:30
2019-10-12 21:52:04 +05:30
%section.settings#autodevops-settings.no-animate{ class: ('expanded' if expanded), data: { qa_selector: 'autodevops_settings_content' } }
2018-10-15 14:42:47 +05:30
.settings-header
%h4
2018-11-08 19:23:39 +05:30
= s_('CICD|Auto DevOps')
2018-10-15 14:42:47 +05:30
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
= expanded ? _('Collapse') : _('Expand')
%p
2020-03-13 15:44:24 +05:30
- auto_devops_url = help_page_path('topics/autodevops/index')
- quickstart_url = help_page_path('topics/autodevops/quick_start_guide')
- auto_devops_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: auto_devops_url }
- quickstart_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: quickstart_url }
= s_('AutoDevOps|Auto DevOps can automatically build, test, and deploy applications based on predefined continuous integration and delivery configuration. %{auto_devops_start}Learn more about Auto DevOps%{auto_devops_end} or use our %{quickstart_start}quick start guide%{quickstart_end} to get started right away.').html_safe % { auto_devops_start: auto_devops_start, auto_devops_end: '</a>'.html_safe, quickstart_start: quickstart_start, quickstart_end: '</a>'.html_safe }
2018-10-15 14:42:47 +05:30
.settings-content
2019-07-07 11:18:12 +05:30
= render 'autodevops_form', auto_devops_enabled: @project.auto_devops_enabled?
2018-10-15 14:42:47 +05:30
2018-11-18 11:00:15 +05:30
= render_if_exists 'projects/settings/ci_cd/protected_environments', expanded: expanded
2021-01-29 00:20:46 +05:30
%section.settings.no-animate#js-runners-settings{ class: ('expanded' if expanded || params[:expand_runners]), data: { qa_selector: 'runners_settings_content' } }
2018-03-17 18:26:18 +05:30
.settings-header
%h4
2018-11-08 19:23:39 +05:30
= _("Runners")
2018-05-09 12:01:36 +05:30
%button.btn.js-settings-toggle{ type: 'button' }
2018-11-08 19:23:39 +05:30
= expanded ? _('Collapse') : _('Expand')
2018-03-17 18:26:18 +05:30
%p
2019-12-26 22:10:19 +05:30
= _("Runners are processes that pick up and execute jobs for GitLab. Here you can register and see your Runners for this project.")
= link_to s_('More information'), help_page_path('ci/runners/README')
2018-03-17 18:26:18 +05:30
.settings-content
= render 'projects/runners/index'
2019-10-12 21:52:04 +05:30
%section.qa-variables-settings.settings.no-animate#js-cicd-variables-settings{ class: ('expanded' if expanded), data: { qa_selector: 'variables_settings_content' } }
2018-03-17 18:26:18 +05:30
.settings-header
2019-02-15 15:39:39 +05:30
= render 'ci/variables/header', expanded: expanded
2018-03-17 18:26:18 +05:30
.settings-content
= render 'ci/variables/index', save_endpoint: project_variables_path(@project)
2018-11-08 19:23:39 +05:30
%section.settings.no-animate#js-pipeline-triggers{ class: ('expanded' if expanded) }
2018-03-17 18:26:18 +05:30
.settings-header
%h4
2018-11-08 19:23:39 +05:30
= _("Pipeline triggers")
2018-05-09 12:01:36 +05:30
%button.btn.js-settings-toggle{ type: 'button' }
2018-11-08 19:23:39 +05:30
= expanded ? _('Collapse') : _('Expand')
2018-03-17 18:26:18 +05:30
%p
2020-01-01 13:55:28 +05:30
= _("Triggers can force a specific branch or tag to get rebuilt with an API call. These tokens will impersonate their associated user including their access to projects and their project permissions.")
2018-03-17 18:26:18 +05:30
.settings-content
= render 'projects/triggers/index'
2020-01-01 13:55:28 +05:30
2020-03-13 15:44:24 +05:30
- if settings_container_registry_expiration_policy_available?(@project)
%section.settings.no-animate#js-registry-policies{ class: ('expanded' if expanded) }
2020-01-01 13:55:28 +05:30
.settings-header
%h4
2020-07-28 23:09:34 +05:30
= _("Cleanup policy for tags")
2020-01-01 13:55:28 +05:30
%button.btn.js-settings-toggle{ type: 'button' }
= expanded ? _('Collapse') : _('Expand')
%p
2020-07-28 23:09:34 +05:30
= _("Save space and find tags in the Container Registry more easily. Enable the cleanup policy to remove stale tags and keep only the ones you need.")
= link_to _('More information'), help_page_path('user/packages/container_registry/index', anchor: 'cleanup-policy', target: '_blank', rel: 'noopener noreferrer')
2020-01-01 13:55:28 +05:30
.settings-content
= render 'projects/registry/settings/index'
2020-10-24 23:57:45 +05:30
2021-01-29 00:20:46 +05:30
= render_if_exists 'projects/settings/ci_cd/auto_rollback', expanded: expanded
2020-10-24 23:57:45 +05:30
- if can?(current_user, :create_freeze_period, @project)
%section.settings.no-animate#js-deploy-freeze-settings{ class: ('expanded' if expanded) }
.settings-header
%h4
= _("Deploy freezes")
%button.btn.js-settings-toggle{ type: 'button' }
= expanded ? _('Collapse') : _('Expand')
%p
- freeze_period_docs = help_page_path('user/project/releases/index', anchor: 'prevent-unintentional-releases-by-setting-a-deploy-freeze')
- freeze_period_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: freeze_period_docs }
= html_escape(s_('DeployFreeze|Specify times when deployments are not allowed for an environment. The %{filename} file must be updated to make deployment jobs aware of the %{freeze_period_link_start}freeze period%{freeze_period_link_end}.')) % { freeze_period_link_start: freeze_period_link_start, freeze_period_link_end: '</a>'.html_safe, filename: tag.code('gitlab-ci.yml') }
- cron_syntax_url = 'https://crontab.guru/'
- cron_syntax_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: cron_syntax_url }
= s_('DeployFreeze|You can specify deploy freezes using only %{cron_syntax_link_start}cron syntax%{cron_syntax_link_end}.').html_safe % { cron_syntax_link_start: cron_syntax_link_start, cron_syntax_link_end: "</a>".html_safe }
.settings-content
= render 'ci/deploy_freeze/index'