Commit edbbbe3a authored by Achilleas Pipinellis's avatar Achilleas Pipinellis Committed by Rémy Coutable

Fix grammar and typos in Runners pages

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent f4ded8a8
...@@ -5,8 +5,10 @@ ...@@ -5,8 +5,10 @@
%p.prepend-top-default %p.prepend-top-default
%span %span
To register a new runner you should enter the following registration token. To register a new Runner you should enter the following registration
With this token the runner will request a unique runner token and use that for future communication. token.
With this token the Runner will request a unique Runner token and use
that for future communication.
%br %br
Registration token is Registration token is
%code{ id: 'runners-token' } #{current_application_settings.runners_registration_token} %code{ id: 'runners-token' } #{current_application_settings.runners_registration_token}
...@@ -24,27 +26,27 @@ ...@@ -24,27 +26,27 @@
.bs-callout .bs-callout
%p %p
A 'runner' is a process which runs a build. A 'Runner' is a process which runs a build.
You can setup as many runners as you need. You can setup as many Runners as you need.
%br %br
Runners can be placed on separate users, servers, and even on your local machine. Runners can be placed on separate users, servers, even on your local machine.
%br %br
%div %div
%span Each runner can be in one of the following states: %span Each Runner can be in one of the following states:
%ul %ul
%li %li
%span.label.label-success shared %span.label.label-success shared
\- run builds from all unassigned projects \- Runner runs builds from all unassigned projects
%li %li
%span.label.label-info specific %span.label.label-info specific
\- run builds from assigned projects \- Runner runs builds from assigned projects
%li %li
%span.label.label-warning locked %span.label.label-warning locked
\- runner cannot be assigned to other projects \- Runner cannot be assigned to other projects
%li %li
%span.label.label-danger paused %span.label.label-danger paused
\- runner will not receive any new builds \- Runner will not receive any new builds
.append-bottom-20.clearfix .append-bottom-20.clearfix
.pull-left .pull-left
......
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
- if @runner.shared? - if @runner.shared?
.bs-callout.bs-callout-success .bs-callout.bs-callout-success
%h4 This runner will process builds from ALL UNASSIGNED projects %h4 This Runner will process builds from ALL UNASSIGNED projects
%p %p
If you want runners to build only specific projects, enable them in the table below. If you want Runners to build only specific projects, enable them in the table below.
Keep in mind that this is a one way transition. Keep in mind that this is a one way transition.
- else - else
.bs-callout.bs-callout-info .bs-callout.bs-callout-info
%h4 This runner will process builds only from ASSIGNED projects %h4 This Runner will process builds only from ASSIGNED projects
%p You can't make this a shared runner. %p You can't make this a shared Runner.
%hr %hr
.append-bottom-20 .append-bottom-20
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
.row .row
.col-md-6 .col-md-6
%h4 Restrict projects for this runner %h4 Restrict projects for this Runner
- if @runner.projects.any? - if @runner.projects.any?
%table.table.assigned-projects %table.table.assigned-projects
%thead %thead
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
= paginate @projects = paginate @projects
.col-md-6 .col-md-6
%h4 Recent builds served by this runner %h4 Recent builds served by this Runner
%table.table.builds.runner-builds %table.table.builds.runner-builds
%thead %thead
%tr %tr
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
.col-sm-10 .col-sm-10
.checkbox .checkbox
= f.check_box :active = f.check_box :active
%span.light Paused runners don't accept new builds %span.light Paused Runners don't accept new builds
.form-group .form-group
= label :run_untagged, 'Run untagged jobs', class: 'control-label' = label :run_untagged, 'Run untagged jobs', class: 'control-label'
.col-sm-10 .col-sm-10
...@@ -33,6 +33,6 @@ ...@@ -33,6 +33,6 @@
Tags Tags
.col-sm-10 .col-sm-10
= f.text_field :tag_list, value: runner.tag_list.to_s, class: 'form-control' = f.text_field :tag_list, value: runner.tag_list.to_s, class: 'form-control'
.help-block You can setup jobs to only use runners with specific tags .help-block You can setup jobs to only use Runners with specific tags
.form-actions .form-actions
= f.submit 'Save changes', class: 'btn btn-save' = f.submit 'Save changes', class: 'btn btn-save'
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
.pull-right .pull-right
- if @project_runners.include?(runner) - if @project_runners.include?(runner)
- if runner.belongs_to_one_project? - if runner.belongs_to_one_project?
= link_to 'Remove runner', runner_path(runner), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm' = link_to 'Remove Runner', runner_path(runner), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
- else - else
- runner_project = @project.runner_projects.find_by(runner_id: runner) - runner_project = @project.runner_projects.find_by(runner_id: runner)
= link_to 'Disable for this project', namespace_project_runner_project_path(@project.namespace, @project, runner_project), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm' = link_to 'Disable for this project', namespace_project_runner_project_path(@project.namespace, @project, runner_project), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
......
%h3 Shared runners %h3 Shared Runners
.bs-callout.bs-callout-warning.shared-runners-description .bs-callout.bs-callout-warning.shared-runners-description
- if shared_runners_text.present? - if shared_runners_text.present?
= markdown(shared_runners_text, pipeline: 'plain_markdown') = markdown(shared_runners_text, pipeline: 'plain_markdown')
- else - else
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). GitLab 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).
%hr %hr
- if @project.shared_runners_enabled? - if @project.shared_runners_enabled?
= link_to toggle_shared_runners_namespace_project_runners_path(@project.namespace, @project), class: 'btn btn-warning', method: :post do = link_to toggle_shared_runners_namespace_project_runners_path(@project.namespace, @project), class: 'btn btn-warning', method: :post do
Disable shared runners Disable shared Runners
- else - else
= link_to toggle_shared_runners_namespace_project_runners_path(@project.namespace, @project), class: 'btn btn-success', method: :post do = link_to toggle_shared_runners_namespace_project_runners_path(@project.namespace, @project), class: 'btn btn-success', method: :post do
Enable shared runners Enable shared Runners
&nbsp; for this project &nbsp; for this project
- if @shared_runners_count.zero? - if @shared_runners_count.zero?
This GitLab server does not provide any shared runners yet. This GitLab server does not provide any shared Runners yet.
Please use specific runners or ask the administrator to create one. Please use the specific Runners or ask your administrator to create one.
- else - else
%h4.underlined-title Available shared runners - #{@shared_runners_count} %h4.underlined-title Available shared Runners : #{@shared_runners_count}
%ul.bordered-list.available-shared-runners %ul.bordered-list.available-shared-runners
= render partial: 'runner', collection: @shared_runners, as: :runner = render partial: 'runner', collection: @shared_runners, as: :runner
- if @shared_runners_count > 10 - if @shared_runners_count > 10
......
%h3 Specific runners %h3 Specific Runners
.bs-callout.help-callout .bs-callout.help-callout
%h4 How to setup a new project specific runner %h4 How to setup a specific Runner for a new project
%ol %ol
%li %li
Install GitLab Runner software. Install a Runner compatible with GitLab CI
Checkout the #{link_to 'GitLab Runner section', 'https://about.gitlab.com/gitlab-ci/#gitlab-runner', target: '_blank'} to install it (checkout the #{link_to 'GitLab Runner section', 'https://about.gitlab.com/gitlab-ci/#gitlab-runner', target: '_blank'} for information on how to install it).
%li %li
Specify the following URL during runner setup: Specify the following URL during the Runner setup:
%code #{ci_root_url(only_path: false)} %code #{ci_root_url(only_path: false)}
%li %li
Use the following registration token during setup: Use the following registration token during setup:
%code #{@project.runners_token} %code #{@project.runners_token}
%li %li
Start runner! Start the Runner!
- if @project_runners.any? - if @project_runners.any?
......
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
.light.prepend-top-default .light.prepend-top-default
%p %p
A 'runner' is a process which runs a build. A 'Runner' is a process which runs a build.
You can setup as many runners as you need. You can setup as many Runners as you need.
%br %br
Runners can be placed on separate users, servers, and even on your local machine. Runners can be placed on separate users, servers, and even on your local machine.
%p Each runner can be in one of the following states: %p Each Runner can be in one of the following states:
%div %div
%ul %ul
%li %li
%span.label.label-success active %span.label.label-success active
\- runner is active and can process any new build \- Runner is active and can process any new builds
%li %li
%span.label.label-danger paused %span.label.label-danger paused
\- runner is paused and will not receive any new build \- Runner is paused and will not receive any new builds
%hr %hr
%p.lead To start serving your builds you can either add specific runners to your project or use shared runners %p.lead To start serving your builds you can either add specific Runners to your project or use shared Runners
.row .row
.col-sm-6 .col-sm-6
= render 'specific_runners' = render 'specific_runners'
......
...@@ -60,7 +60,7 @@ describe "Runners" do ...@@ -60,7 +60,7 @@ describe "Runners" do
it "removes specific runner for project if this is last project for that runners" do it "removes specific runner for project if this is last project for that runners" do
within ".activated-specific-runners" do within ".activated-specific-runners" do
click_on "Remove runner" click_on "Remove Runner"
end end
expect(Ci::Runner.exists?(id: @specific_runner)).to be_falsey expect(Ci::Runner.exists?(id: @specific_runner)).to be_falsey
...@@ -75,7 +75,7 @@ describe "Runners" do ...@@ -75,7 +75,7 @@ describe "Runners" do
end end
it "enables shared runners" do it "enables shared runners" do
click_on "Enable shared runners" click_on "Enable shared Runners"
expect(@project.reload.shared_runners_enabled).to be_truthy expect(@project.reload.shared_runners_enabled).to be_truthy
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment