debian-mirror-gitlab/app/views/projects/jobs/show.html.haml

100 lines
4.8 KiB
Text
Raw Normal View History

2016-11-03 12:29:30 +05:30
- @no_container = true
2018-03-17 18:26:18 +05:30
- add_to_breadcrumbs "Jobs", project_jobs_path(@project)
- breadcrumb_title "##{@build.id}"
2017-08-17 22:00:37 +05:30
- page_title "#{@build.name} (##{@build.id})", "Jobs"
2015-11-26 14:37:03 +05:30
2016-11-03 12:29:30 +05:30
%div{ class: container_class }
2017-09-10 17:25:29 +05:30
.build-page.js-build-page
#js-build-header-vue
2016-11-03 12:29:30 +05:30
- if @build.stuck?
- unless @build.any_runners_online?
2017-09-10 17:25:29 +05:30
.bs-callout.bs-callout-warning.js-build-stuck
2016-11-03 12:29:30 +05:30
%p
- if no_runners_for_project?(@build.project)
2017-08-17 22:00:37 +05:30
This job is stuck, because the project doesn't have any runners online assigned to it.
2016-11-03 12:29:30 +05:30
- elsif @build.tags.any?
2017-08-17 22:00:37 +05:30
This job is stuck, because you don't have any active runners online with any of these tags assigned to them:
2016-11-03 12:29:30 +05:30
- @build.tags.each do |tag|
%span.label.label-primary
= tag
- else
2017-08-17 22:00:37 +05:30
This job is stuck, because you don't have any active runners that can run this job.
2015-10-24 18:46:33 +05:30
2016-11-03 12:29:30 +05:30
%br
Go to
2017-09-10 17:25:29 +05:30
= link_to project_runners_path(@build.project) do
2016-11-03 12:29:30 +05:30
Runners page
2015-10-24 18:46:33 +05:30
2017-08-17 22:00:37 +05:30
- if @build.starts_environment?
2017-09-10 17:25:29 +05:30
.prepend-top-default.js-environment-container
2017-08-17 22:00:37 +05:30
.environment-information
- if @build.outdated_deployment?
= ci_icon_for_status('success_with_warnings')
- else
= ci_icon_for_status(@build.status)
- environment = environment_for_build(@build.project, @build)
- if @build.success? && @build.last_deployment.present?
- if @build.last_deployment.last?
This job is the most recent deployment to #{environment_link_for_build(@build.project, @build)}.
- else
This job is an out-of-date deployment to #{environment_link_for_build(@build.project, @build)}.
View the most recent deployment #{deployment_link(environment.last_deployment)}.
- elsif @build.complete? && !@build.success?
The deployment of this job to #{environment_link_for_build(@build.project, @build)} did not succeed.
- else
This job is creating a deployment to #{environment_link_for_build(@build.project, @build)}
- if environment.try(:last_deployment)
and will overwrite the #{deployment_link(environment.last_deployment, text: 'latest deployment')}
2017-09-10 17:25:29 +05:30
- if @build.erased?
.prepend-top-default.js-build-erased
2016-11-03 12:29:30 +05:30
.erased.alert.alert-warning
2017-08-17 22:00:37 +05:30
- if @build.erased_by_user?
Job has been erased by #{link_to(@build.erased_by_name, user_path(@build.erased_by))} #{time_ago_with_tooltip(@build.erased_at)}
- else
Job has been erased #{time_ago_with_tooltip(@build.erased_at)}
2018-05-09 12:01:36 +05:30
- if @build.running? || @build.has_trace?
2018-03-17 18:26:18 +05:30
.build-trace-container.prepend-top-default
.top-bar.js-top-bar
.js-truncated-info.truncated-info.hidden-xs.pull-left.hidden<
Showing last
%span.js-truncated-info-size.truncated-info-size><
of log -
%a.js-raw-link.raw-link{ href: raw_project_job_path(@project, @build) }>< Complete Raw
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
.controllers.pull-right
- 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-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
- 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-24 18:46:33 +05:30
2018-03-17 18:26:18 +05:30
%pre.build-trace#build-trace
%code.bash.js-build-output
.build-loader-animation.js-build-refresh
- else
2018-05-09 12:01:36 +05:30
= render "empty_states"
= render "sidebar", builds: @builds
2015-10-24 18:46:33 +05:30
2017-08-17 22:00:37 +05:30
.js-build-options{ data: javascript_build_options }
2017-09-10 17:25:29 +05:30
2018-05-09 12:01:36 +05:30
#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') } }