debian-mirror-gitlab/app/views/projects/settings/ci_cd/show.html.haml

111 lines
6.9 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2021-04-17 20:07:23 +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
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-11-08 19:23:39 +05:30
= _("General pipelines")
2021-03-11 19:13:27 +05:30
%button.btn.gl-button.btn-default.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
2021-03-11 19:13:27 +05:30
= _("Customize your pipeline configuration 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
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-11-08 19:23:39 +05:30
= s_('CICD|Auto DevOps')
2021-03-11 19:13:27 +05:30
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2018-10-15 14:42:47 +05:30
= 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 }
2021-03-08 18:12:59 +05:30
= s_('AutoDevOps|%{auto_devops_start}Automate building, testing, and deploying%{auto_devops_end} your applications based on your continuous integration and delivery configuration. %{quickstart_start}How do I get started?%{quickstart_end}').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
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-11-08 19:23:39 +05:30
= _("Runners")
2021-03-11 19:13:27 +05:30
%button.btn.gl-button.btn-default.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
2021-03-08 18:12:59 +05:30
= _("Runners are processes that pick up and execute CI/CD jobs for GitLab.")
2021-03-11 19:13:27 +05:30
= link_to s_('How do I configure runners?'), help_page_path('ci/runners/README'), target: '_blank', rel: 'noopener noreferrer'
2018-03-17 18:26:18 +05:30
.settings-content
= render 'projects/runners/index'
2021-03-11 19:13:27 +05:30
- if Gitlab::CurrentSettings.current_application_settings.keep_latest_artifact?
%section.settings.no-animate#js-artifacts-settings{ class: ('expanded' if expanded) }
.settings-header
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2021-03-11 19:13:27 +05:30
= _("Artifacts")
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
= expanded ? _('Collapse') : _('Expand')
%p
= _("A job artifact is an archive of files and directories saved by a job when it finishes.")
.settings-content
#js-artifacts-settings-app{ data: { full_path: @project.full_path, help_page_path: help_page_path('ci/pipelines/job_artifacts', anchor: 'keep-artifacts-from-most-recent-successful-jobs') } }
2021-03-08 18:12:59 +05:30
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
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-11-08 19:23:39 +05:30
= _("Pipeline triggers")
2021-03-11 19:13:27 +05:30
%button.btn.gl-button.btn-default.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
2021-03-11 19:13:27 +05:30
= _("Trigger a pipeline for a branch or tag by generating a trigger token and using it with an API call. The token impersonates a user's project access and permissions.")
= link_to _('Learn more.'), help_page_path('ci/triggers/README'), target: '_blank', rel: 'noopener noreferrer'
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
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2021-02-22 17:27:13 +05:30
= _("Clean up image tags")
2021-03-11 19:13:27 +05:30
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2020-01-01 13:55:28 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2021-02-22 17:27:13 +05:30
= _("Save space and find images in the Container Registry. Remove unneeded tags and keep only the ones you want.")
2021-03-11 19:13:27 +05:30
= link_to _('How does cleanup work?'), 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
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2020-10-24 23:57:45 +05:30
= _("Deploy freezes")
2021-03-11 19:13:27 +05:30
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2020-10-24 23:57:45 +05:30
= 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 }
2021-03-11 19:13:27 +05:30
= html_escape(s_('DeployFreeze|Add a freeze period to prevent unintended releases during a period of time for a given environment. You must update the deployment jobs in %{filename} according to the deploy freezes added here. %{freeze_period_link_start}Learn more.%{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') }
2020-10-24 23:57:45 +05:30
- cron_syntax_url = 'https://crontab.guru/'
- cron_syntax_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: cron_syntax_url }
2021-03-11 19:13:27 +05:30
= s_('DeployFreeze|Specify deploy freezes using %{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 }
2020-10-24 23:57:45 +05:30
.settings-content
= render 'ci/deploy_freeze/index'