2018-04-12 20:11:22 +00:00
= form_for runner, url: runner_form_url do |f|
2016-05-18 15:23:26 +00:00
= form_errors(runner)
2018-04-12 20:11:22 +00:00
.form-group.row
2018-08-15 04:34:24 +00:00
= label :active, _("Active"), class: 'col-form-label col-sm-2'
2016-05-09 10:47:44 +00:00
.col-sm-10
2018-04-11 18:05:57 +00:00
.form-check
2018-05-31 19:20:46 +00:00
= f.check_box :active, { class: 'form-check-input' }
2021-01-07 09:10:22 +00:00
%label.light{ for: :runner_active }= _("Paused runners don't accept new jobs")
2018-04-12 20:11:22 +00:00
.form-group.row
2018-08-15 04:34:24 +00:00
= label :protected, _("Protected"), class: 'col-form-label col-sm-2'
2017-07-31 12:59:04 +00:00
.col-sm-10
2018-04-11 18:05:57 +00:00
.form-check
2018-05-31 19:20:46 +00:00
= f.check_box :access_level, { class: 'form-check-input' }, 'ref_protected', 'not_protected'
2018-08-15 04:34:24 +00:00
%label.light{ for: :runner_access_level }= _('This runner will only run on pipelines triggered on protected branches')
2018-04-12 20:11:22 +00:00
.form-group.row
2018-08-15 04:34:24 +00:00
= label :run_untagged, _('Run untagged jobs'), class: 'col-form-label col-sm-2'
2016-05-04 12:40:03 +00:00
.col-sm-10
2018-04-11 18:05:57 +00:00
.form-check
2018-05-31 19:20:46 +00:00
= f.check_box :run_untagged, { class: 'form-check-input' }
2018-08-15 04:34:24 +00:00
%label.light{ for: :runner_run_untagged }= _('Indicates whether this runner can pick jobs without tags')
2018-05-04 11:59:19 +00:00
- unless runner.group_type?
2018-05-08 15:49:30 +00:00
.form-group.row
2018-05-10 16:00:33 +00:00
= label :locked, _('Lock to current projects'), class: 'col-form-label col-sm-2'
2018-05-04 11:59:19 +00:00
.col-sm-10
2018-05-08 15:49:30 +00:00
.form-check
2018-05-31 19:20:46 +00:00
= f.check_box :locked, { class: 'form-check-input' }
2018-08-15 04:34:24 +00:00
%label.light{ for: :runner_locked }= _('When a runner is locked, it cannot be assigned to other projects')
2018-04-12 20:11:22 +00:00
.form-group.row
2018-04-12 23:16:56 +00:00
= label_tag :ip_address, class: 'col-form-label col-sm-2' do
2018-08-15 04:34:24 +00:00
= _('IP Address')
2018-02-26 03:31:36 +00:00
.col-sm-10
= f.text_field :ip_address, class: 'form-control', readonly: true
2018-04-12 20:11:22 +00:00
.form-group.row
2018-04-12 23:16:56 +00:00
= label_tag :description, class: 'col-form-label col-sm-2' do
2018-08-15 04:34:24 +00:00
= _('Description')
2016-05-09 10:47:44 +00:00
.col-sm-10
= f.text_field :description, class: 'form-control'
2018-04-12 20:11:22 +00:00
.form-group.row
2018-04-12 23:16:56 +00:00
= label_tag :maximum_timeout_human_readable, class: 'col-form-label col-sm-2' do
2018-08-15 04:34:24 +00:00
= _('Maximum job timeout')
2018-02-19 17:41:50 +00:00
.col-sm-10
2018-03-06 15:14:23 +00:00
= f.text_field :maximum_timeout_human_readable, class: 'form-control'
2021-01-07 09:10:22 +00:00
.form-text.text-muted= _('Enter the number of seconds, or other human-readable input, like "1 hour". This timeout takes precedence over lower timeouts set for the project.')
2018-04-12 20:11:22 +00:00
.form-group.row
2018-04-12 23:16:56 +00:00
= label_tag :tag_list, class: 'col-form-label col-sm-2' do
2018-08-15 04:34:24 +00:00
= _('Tags')
2016-05-09 10:47:44 +00:00
.col-sm-10
2017-02-14 22:28:35 +00:00
= f.text_field :tag_list, value: runner.tag_list.sort.join(', '), class: 'form-control'
2021-01-12 21:10:47 +00:00
.form-text.text-muted= _('You can set up jobs to only use runners with specific tags. Separate tags with commas.')
2020-04-21 15:21:10 +00:00
- if local_assigns[:in_gitlab_com_admin_context]
.form-group.row
= label_tag :public_projects_minutes_cost_factor, class: 'col-form-label col-sm-2' do
= _('Public projects Minutes cost factor')
.col-sm-10
= f.text_field :public_projects_minutes_cost_factor, class: 'form-control'
.form-group.row
= label_tag :private_projects_minutes_cost_factor, class: 'col-form-label col-sm-2' do
= _('Private projects Minutes cost factor')
.col-sm-10
= f.text_field :private_projects_minutes_cost_factor, class: 'form-control'
2016-05-09 10:47:44 +00:00
.form-actions
2018-08-15 04:34:24 +00:00
= f.submit _('Save changes'), class: 'btn btn-success'