2016-08-24 22:44:58 +00:00
|
|
|
- @no_container = true
|
2017-08-17 09:42:04 +00:00
|
|
|
- add_to_breadcrumbs "Jobs", project_jobs_path(@project)
|
|
|
|
- breadcrumb_title "##{@build.id}"
|
2017-01-25 15:51:11 +00:00
|
|
|
- page_title "#{@build.name} (##{@build.id})", "Jobs"
|
2015-11-03 10:44:07 +00:00
|
|
|
|
2018-09-18 18:14:49 +00:00
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= stylesheet_link_tag 'page_bundles/xterm'
|
|
|
|
|
2016-08-24 22:44:58 +00:00
|
|
|
%div{ class: container_class }
|
2017-06-12 09:20:19 +00:00
|
|
|
.build-page.js-build-page
|
|
|
|
#js-build-header-vue
|
2018-03-08 17:33:06 +00:00
|
|
|
|
2018-04-11 08:55:48 +00:00
|
|
|
- if @build.running? || @build.has_trace?
|
2017-12-19 11:04:04 +00:00
|
|
|
.build-trace-container.prepend-top-default
|
|
|
|
.top-bar.js-top-bar
|
2018-04-09 21:50:40 +00:00
|
|
|
.js-truncated-info.truncated-info.d-none.d-sm-block.float-left.hidden<
|
2017-12-19 11:04:04 +00:00
|
|
|
Showing last
|
|
|
|
%span.js-truncated-info-size.truncated-info-size><
|
2018-01-04 22:39:01 +00:00
|
|
|
of log -
|
2017-12-19 11:04:04 +00:00
|
|
|
%a.js-raw-link.raw-link{ href: raw_project_job_path(@project, @build) }>< Complete Raw
|
2017-05-30 08:43:13 +00:00
|
|
|
|
2018-04-09 17:42:45 +00:00
|
|
|
.controllers.float-right
|
2017-12-19 11:04:04 +00:00
|
|
|
- if @build.has_trace?
|
|
|
|
= link_to raw_project_job_path(@project, @build),
|
|
|
|
title: 'Show complete raw',
|
|
|
|
data: { placement: 'top', container: 'body' },
|
|
|
|
class: 'js-raw-link-controller has-tooltip controllers-buttons' do
|
|
|
|
= icon('file-text-o')
|
2017-07-05 11:32:22 +00:00
|
|
|
|
2017-12-19 11:04:04 +00:00
|
|
|
- if @build.erasable? && can?(current_user, :erase_build, @build)
|
|
|
|
= link_to erase_project_job_path(@project, @build),
|
|
|
|
method: :post,
|
|
|
|
data: { confirm: 'Are you sure you want to erase this build?', placement: 'top', container: 'body' },
|
|
|
|
title: 'Erase job log',
|
|
|
|
class: 'has-tooltip js-erase-link controllers-buttons' do
|
|
|
|
= icon('trash')
|
|
|
|
.has-tooltip.controllers-buttons{ title: 'Scroll to top', data: { placement: 'top', container: 'body'} }
|
|
|
|
%button.js-scroll-up.btn-scroll.btn-transparent.btn-blank{ type: 'button', disabled: true }
|
|
|
|
= custom_icon('scroll_up')
|
|
|
|
.has-tooltip.controllers-buttons{ title: 'Scroll to bottom', data: { placement: 'top', container: 'body'} }
|
|
|
|
%button.js-scroll-down.btn-scroll.btn-transparent.btn-blank{ type: 'button', disabled: true }
|
|
|
|
= custom_icon('scroll_down')
|
2015-10-06 15:11:10 +00:00
|
|
|
|
2018-05-30 15:18:18 +00:00
|
|
|
= render 'shared/builds/build_output'
|
2018-03-08 17:33:06 +00:00
|
|
|
|
2018-10-03 14:13:20 +00:00
|
|
|
#js-details-block-vue{ data: { terminal_path: can?(current_user, :create_build_terminal, @build) && @build.has_terminal? ? terminal_project_job_path(@project, @build) : nil } }
|
2015-10-06 15:11:10 +00:00
|
|
|
|
2016-09-08 15:50:36 +00:00
|
|
|
.js-build-options{ data: javascript_build_options }
|
2017-06-12 09:20:19 +00:00
|
|
|
|
2018-10-11 15:14:40 +00:00
|
|
|
#js-job-details-vue{ data: { endpoint: project_job_path(@project, @build, format: :json),
|
|
|
|
runner_help_url: help_page_path('ci/runners/README.html', anchor: 'setting-maximum-job-timeout-for-a-runner'),
|
|
|
|
runner_settings_url: project_runners_path(@build.project, anchor: 'js-runners-settings') } }
|