2015-08-25 21:42:46 -04:00
|
|
|
= content_for :title do
|
|
|
|
%h3.project-title
|
|
|
|
Runner ##{@runner.id}
|
|
|
|
.pull-right
|
|
|
|
- if @runner.shared?
|
|
|
|
%span.runner-state.runner-state-shared
|
|
|
|
Shared
|
|
|
|
- else
|
|
|
|
%span.runner-state.runner-state-specific
|
|
|
|
Specific
|
|
|
|
|
|
|
|
- if @runner.shared?
|
|
|
|
.bs-callout.bs-callout-success
|
2017-01-25 11:14:58 -05:00
|
|
|
%h4 This Runner will process jobs from ALL UNASSIGNED projects
|
2015-08-25 21:42:46 -04:00
|
|
|
%p
|
2015-11-10 16:23:49 -05:00
|
|
|
If you want Runners to build only specific projects, enable them in the table below.
|
2015-08-25 21:42:46 -04:00
|
|
|
Keep in mind that this is a one way transition.
|
|
|
|
- else
|
|
|
|
.bs-callout.bs-callout-info
|
2017-01-25 11:14:58 -05:00
|
|
|
%h4 This Runner will process jobs only from ASSIGNED projects
|
2015-11-10 16:23:49 -05:00
|
|
|
%p You can't make this a shared Runner.
|
2015-08-25 21:42:46 -04:00
|
|
|
%hr
|
2016-05-09 06:47:44 -04:00
|
|
|
|
|
|
|
.append-bottom-20
|
|
|
|
= render '/projects/runners/form', runner: @runner, runner_form_url: admin_runner_path(@runner)
|
2015-08-25 21:42:46 -04:00
|
|
|
|
|
|
|
.row
|
|
|
|
.col-md-6
|
2015-11-10 16:23:49 -05:00
|
|
|
%h4 Restrict projects for this Runner
|
2015-08-25 21:42:46 -04:00
|
|
|
- if @runner.projects.any?
|
2016-06-17 10:17:20 -04:00
|
|
|
%table.table.assigned-projects
|
2015-08-25 21:42:46 -04:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Assigned projects
|
|
|
|
%th
|
|
|
|
- @runner.runner_projects.each do |runner_project|
|
|
|
|
- project = runner_project.project
|
2015-12-04 06:55:23 -05:00
|
|
|
- if project
|
2015-10-23 06:41:17 -04:00
|
|
|
%tr.alert-info
|
|
|
|
%td
|
|
|
|
%strong
|
2015-12-04 06:55:23 -05:00
|
|
|
= project.name_with_namespace
|
2015-10-23 06:41:17 -04:00
|
|
|
%td
|
|
|
|
.pull-right
|
2015-12-14 06:45:03 -05:00
|
|
|
= link_to 'Disable', [:admin, project.namespace.becomes(Namespace), project, runner_project], method: :delete, class: 'btn btn-danger btn-xs'
|
2015-08-25 21:42:46 -04:00
|
|
|
|
2016-06-17 10:17:20 -04:00
|
|
|
%table.table.unassigned-projects
|
2015-08-25 21:42:46 -04:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Project
|
|
|
|
%th
|
|
|
|
|
|
|
|
%tr
|
|
|
|
%td
|
2015-12-04 06:55:23 -05:00
|
|
|
= form_tag admin_runner_path(@runner), id: 'runner-projects-search', class: 'form-inline', method: :get do
|
2015-08-25 21:42:46 -04:00
|
|
|
.form-group
|
2015-10-09 12:08:37 -04:00
|
|
|
= search_field_tag :search, params[:search], class: 'form-control', spellcheck: false
|
2015-08-25 21:42:46 -04:00
|
|
|
= submit_tag 'Search', class: 'btn'
|
|
|
|
|
|
|
|
%td
|
|
|
|
- @projects.each do |project|
|
|
|
|
%tr
|
|
|
|
%td
|
2015-12-04 06:55:23 -05:00
|
|
|
= project.name_with_namespace
|
2015-08-25 21:42:46 -04:00
|
|
|
%td
|
|
|
|
.pull-right
|
2015-12-14 05:30:10 -05:00
|
|
|
= form_for [:admin, project.namespace.becomes(Namespace), project, project.runner_projects.new] do |f|
|
2015-08-25 21:42:46 -04:00
|
|
|
= f.hidden_field :runner_id, value: @runner.id
|
|
|
|
= f.submit 'Enable', class: 'btn btn-xs'
|
2016-08-08 02:28:57 -04:00
|
|
|
= paginate @projects, theme: "gitlab"
|
2015-08-25 21:42:46 -04:00
|
|
|
|
|
|
|
.col-md-6
|
2017-01-25 11:14:58 -05:00
|
|
|
%h4 Recent jobs served by this Runner
|
2016-10-10 17:21:08 -04:00
|
|
|
%table.table.ci-table.runner-builds
|
2015-08-25 21:42:46 -04:00
|
|
|
%thead
|
|
|
|
%tr
|
2017-01-25 11:14:58 -05:00
|
|
|
%th Job
|
2015-08-25 21:42:46 -04:00
|
|
|
%th Status
|
|
|
|
%th Project
|
|
|
|
%th Commit
|
|
|
|
%th Finished at
|
|
|
|
|
|
|
|
- @builds.each do |build|
|
2015-12-04 06:55:23 -05:00
|
|
|
- project = build.project
|
2015-09-18 19:40:44 -04:00
|
|
|
%tr.build
|
2015-10-06 14:15:06 -04:00
|
|
|
%td.id
|
2015-12-04 06:55:23 -05:00
|
|
|
- if project
|
|
|
|
= link_to namespace_project_build_path(project.namespace, project, build) do
|
|
|
|
%strong ##{build.id}
|
2015-10-23 06:41:17 -04:00
|
|
|
- else
|
2015-12-04 06:55:23 -05:00
|
|
|
%strong ##{build.id}
|
2015-10-06 14:15:06 -04:00
|
|
|
|
2015-08-25 21:42:46 -04:00
|
|
|
%td.status
|
2016-12-12 07:28:02 -05:00
|
|
|
= render 'ci/status/badge', status: build.detailed_status(current_user)
|
2015-08-25 21:42:46 -04:00
|
|
|
|
|
|
|
%td.status
|
2015-12-04 06:55:23 -05:00
|
|
|
- if project
|
|
|
|
= project.name_with_namespace
|
2015-08-25 21:42:46 -04:00
|
|
|
|
|
|
|
%td.build-link
|
2015-12-04 06:55:23 -05:00
|
|
|
- if project
|
2016-06-06 05:19:54 -04:00
|
|
|
= link_to ci_status_path(build.pipeline) do
|
2017-01-13 11:07:21 -05:00
|
|
|
%strong= build.pipeline.short_sha
|
2015-08-25 21:42:46 -04:00
|
|
|
|
|
|
|
%td.timestamp
|
|
|
|
- if build.finished_at
|
|
|
|
%span #{time_ago_in_words build.finished_at} ago
|