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