2017-06-09 07:06:35 -04:00
- @content_class = "limit-container-width" unless fluid_layout
2018-06-14 04:40:56 -04:00
- page_title _("CI / CD Settings")
- page_title _("CI / CD")
2017-07-06 12:24:03 -04:00
2017-09-06 11:38:13 -04:00
- expanded = Rails.env.test?
2018-03-22 10:31:41 -04:00
- general_expanded = @project.errors.empty? ? expanded : true
2017-09-06 11:38:13 -04:00
2018-04-17 12:37:16 -04:00
%section.settings#js-general-pipeline-settings.no-animate{ class: ('expanded' if general_expanded) }
2017-09-06 11:38:13 -04:00
.settings-header
%h4
2018-06-14 04:40:56 -04:00
= _("General pipelines")
2018-04-02 12:13:07 -04:00
%button.btn.js-settings-toggle{ type: 'button' }
2018-06-14 04:40:56 -04:00
= expanded ? _('Collapse') : _('Expand')
2017-09-06 11:38:13 -04:00
%p
2018-06-14 04:40:56 -04:00
= _("Access your runner token, customize your pipeline configuration, and view your pipeline status and coverage report.")
2017-10-14 02:10:37 -04:00
.settings-content
2018-03-22 10:31:41 -04:00
= render 'form'
2017-09-06 11:38:13 -04:00
2018-06-11 12:27:08 -04:00
%section.qa-autodevops-settings.settings#autodevops-settings.no-animate{ class: ('expanded' if expanded) }
2018-04-11 13:04:35 -04:00
.settings-header
%h4
2018-05-04 15:26:54 -04:00
= s_('CICD|Auto DevOps')
2018-04-17 12:37:16 -04:00
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
= expanded ? _('Collapse') : _('Expand')
2018-04-11 13:04:35 -04:00
%p
2018-04-17 12:37:16 -04:00
= s_('CICD|Auto DevOps will automatically build, test, and deploy your application based on a predefined Continuous Integration and Delivery configuration.')
= link_to s_('CICD|Learn more about Auto DevOps'), help_page_path('topics/autodevops/index.md')
2018-04-11 13:04:35 -04:00
.settings-content
= render 'autodevops_form'
2018-08-03 16:25:56 -04:00
= render_if_exists 'projects/settings/ci_cd/protected_environments', expanded: expanded
2018-08-01 15:11:42 -04:00
%section.qa-runners-settings.settings.no-animate#js-runners-settings{ class: ('expanded' if expanded) }
2017-09-06 11:38:13 -04:00
.settings-header
%h4
2018-06-14 04:40:56 -04:00
= _("Runners")
2018-04-02 12:13:07 -04:00
%button.btn.js-settings-toggle{ type: 'button' }
2018-06-14 04:40:56 -04:00
= expanded ? _('Collapse') : _('Expand')
2017-09-06 11:38:13 -04:00
%p
2018-06-14 04:40:56 -04:00
= _("Register and see your runners for this project.")
2017-10-14 02:10:37 -04:00
.settings-content
2017-09-06 11:38:13 -04:00
= render 'projects/runners/index'
2018-06-11 12:27:08 -04:00
%section.qa-variables-settings.settings.no-animate{ class: ('expanded' if expanded) }
2017-09-06 11:38:13 -04:00
.settings-header
%h4
2018-05-28 12:27:05 -04:00
= _('Variables')
2018-05-31 12:41:37 -04:00
= link_to icon('question-circle'), help_page_path('ci/variables/README', anchor: 'variables'), target: '_blank', rel: 'noopener noreferrer'
2018-04-02 12:13:07 -04:00
%button.btn.js-settings-toggle{ type: 'button' }
2018-06-14 04:40:56 -04:00
= expanded ? _('Collapse') : _('Expand')
2018-01-16 16:13:14 -05:00
%p.append-bottom-0
2017-09-06 11:38:13 -04:00
= render "ci/variables/content"
2017-10-14 02:10:37 -04:00
.settings-content
2018-01-16 16:13:14 -05:00
= render 'ci/variables/index', save_endpoint: project_variables_path(@project)
2017-09-06 11:38:13 -04:00
2018-06-27 08:21:36 -04:00
%section.settings.no-animate#js-pipeline-triggers{ class: ('expanded' if expanded) }
2017-09-06 11:38:13 -04:00
.settings-header
%h4
2018-06-14 04:40:56 -04:00
= _("Pipeline triggers")
2018-04-02 12:13:07 -04:00
%button.btn.js-settings-toggle{ type: 'button' }
2018-06-14 04:40:56 -04:00
= expanded ? _('Collapse') : _('Expand')
2017-09-06 11:38:13 -04:00
%p
2018-06-14 04:40:56 -04:00
= _("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.")
2017-10-14 02:10:37 -04:00
.settings-content
2017-09-06 11:38:13 -04:00
= render 'projects/triggers/index'