2015-08-25 21:42:46 -04:00
%h3 Shared runners
2016-04-15 09:51:41 -04:00
.bs-callout.bs-callout-warning.shared-runners-description
- if shared_runners_text.present?
2016-04-19 07:39:53 -04:00
= markdown(shared_runners_text, pipeline: 'plain_markdown')
2016-04-15 09:51:41 -04:00
- else
2016-04-19 15:51:19 -04:00
Shared runners execute code of different projects on the same Runner unless you configure GitLab Runner Autoscale with MaxBuilds 1 (which it is on GitLab.com).
2015-08-25 21:42:46 -04:00
%hr
2015-12-04 06:55:23 -05:00
- if @project.shared_runners_enabled?
= link_to toggle_shared_runners_namespace_project_runners_path(@project.namespace, @project), class: 'btn btn-warning', method: :post do
2015-08-25 21:42:46 -04:00
Disable shared runners
- else
2015-12-04 06:55:23 -05:00
= link_to toggle_shared_runners_namespace_project_runners_path(@project.namespace, @project), class: 'btn btn-success', method: :post do
2015-08-25 21:42:46 -04:00
Enable shared runners
for this project
- if @shared_runners_count.zero?
2015-12-12 04:48:32 -05:00
This GitLab server does not provide any shared runners yet.
Please use specific runners or ask the administrator to create one.
2015-08-25 21:42:46 -04:00
- else
%h4.underlined-title Available shared runners - #{@shared_runners_count}
%ul.bordered-list.available-shared-runners
2015-09-25 12:03:41 -04:00
= render partial: 'runner', collection: @shared_runners, as: :runner
2015-08-25 21:42:46 -04:00
- if @shared_runners_count > 10
.light
and #{@shared_runners_count - 10} more...