2016-08-24 18:44:58 -04:00
|
|
|
- @no_container = true
|
2015-12-08 07:17:05 -05:00
|
|
|
- page_title "#{@build.name} (##{@build.id})", "Builds"
|
2016-09-01 17:00:43 -04:00
|
|
|
- trace_with_state = @build.trace_with_state
|
2016-08-24 18:44:58 -04:00
|
|
|
= render "projects/pipelines/head", build_subnav: true
|
2015-11-03 05:44:07 -05:00
|
|
|
|
2016-08-24 18:44:58 -04:00
|
|
|
%div{ class: container_class }
|
|
|
|
.build-page
|
|
|
|
= render "header"
|
2015-10-06 11:11:10 -04:00
|
|
|
|
2016-08-24 18:44:58 -04:00
|
|
|
- if @build.stuck?
|
|
|
|
- unless @build.any_runners_online?
|
|
|
|
.bs-callout.bs-callout-warning
|
|
|
|
%p
|
|
|
|
- if no_runners_for_project?(@build.project)
|
|
|
|
This build is stuck, because the project doesn't have any runners online assigned to it.
|
|
|
|
- elsif @build.tags.any?
|
|
|
|
This build is stuck, because you don't have any active runners online with any of these tags assigned to them:
|
|
|
|
- @build.tags.each do |tag|
|
|
|
|
%span.label.label-primary
|
|
|
|
= tag
|
|
|
|
- else
|
|
|
|
This build is stuck, because you don't have any active runners that can run this build.
|
2015-10-12 15:12:31 -04:00
|
|
|
|
2016-08-24 18:44:58 -04:00
|
|
|
%br
|
|
|
|
Go to
|
|
|
|
= link_to namespace_project_runners_path(@build.project.namespace, @build.project) do
|
|
|
|
Runners page
|
2015-10-12 15:12:31 -04:00
|
|
|
|
2016-11-17 06:08:28 -05:00
|
|
|
- if @build.starts_environment?
|
2016-11-01 16:38:44 -04:00
|
|
|
.prepend-top-default
|
|
|
|
.environment-information
|
2016-11-16 18:23:05 -05:00
|
|
|
- if @build.outdated_deployment?
|
2016-11-08 17:29:55 -05:00
|
|
|
= ci_icon_for_status('success_with_warnings')
|
|
|
|
- else
|
|
|
|
= ci_icon_for_status(@build.status)
|
2016-11-02 18:25:19 -04:00
|
|
|
|
2016-11-16 18:23:05 -05:00
|
|
|
- environment = environment_for_build(@build.project, @build)
|
|
|
|
- if @build.success? && @build.last_deployment.present?
|
|
|
|
- if @build.last_deployment.last?
|
|
|
|
This build is the most recent deployment to #{environment_link_for_build(@build.project, @build)}.
|
2016-11-04 11:35:22 -04:00
|
|
|
- else
|
2016-11-16 18:23:05 -05:00
|
|
|
This build is an out-of-date deployment to #{environment_link_for_build(@build.project, @build)}.
|
2016-11-23 08:18:06 -05:00
|
|
|
View the most recent deployment #{deployment_link(environment.last_deployment)}.
|
2016-11-16 18:23:05 -05:00
|
|
|
- elsif @build.complete? && !@build.success?
|
2016-11-17 14:33:53 -05:00
|
|
|
The deployment of this build to #{environment_link_for_build(@build.project, @build)} did not succeed.
|
2016-11-04 11:35:22 -04:00
|
|
|
- else
|
2016-11-16 18:23:05 -05:00
|
|
|
This build is creating a deployment to #{environment_link_for_build(@build.project, @build)}
|
2016-11-22 11:43:26 -05:00
|
|
|
- if environment.try(:last_deployment)
|
2016-12-07 10:27:22 -05:00
|
|
|
and will overwrite the #{deployment_link(environment.last_deployment, text: 'latest deployment')}
|
2016-11-01 16:38:44 -04:00
|
|
|
|
2016-08-24 18:44:58 -04:00
|
|
|
.prepend-top-default
|
|
|
|
- if @build.erased?
|
|
|
|
.erased.alert.alert-warning
|
|
|
|
- erased_by = "by #{link_to @build.erased_by.name, user_path(@build.erased_by)}" if @build.erased_by
|
|
|
|
Build has been erased #{erased_by.html_safe} #{time_ago_with_tooltip(@build.erased_at)}
|
|
|
|
- else
|
|
|
|
#js-build-scroll.scroll-controls
|
2016-09-08 11:50:36 -04:00
|
|
|
.scroll-step
|
2016-12-06 05:55:36 -05:00
|
|
|
%a{ href: '#up-build-trace', id: 'scroll-top', class: 'scroll-link scroll-top', title: 'Scroll to top'}
|
|
|
|
%a{ href: '#down-build-trace', id: 'scroll-bottom', class: 'scroll-link scroll-bottom', title: 'Scroll to bottom'}
|
2016-09-08 11:50:36 -04:00
|
|
|
- if @build.active?
|
|
|
|
.autoscroll-container
|
2016-12-08 06:02:43 -05:00
|
|
|
%span.status-message#autoscroll-status{:data => {:state => 'disabled'}}
|
2016-12-05 05:33:54 -05:00
|
|
|
%label Autoscroll active
|
2016-12-06 05:55:36 -05:00
|
|
|
%i.status-icon
|
2016-12-05 05:33:54 -05:00
|
|
|
#up-build-trace
|
2016-08-24 18:44:58 -04:00
|
|
|
%pre.build-trace#build-trace
|
|
|
|
%code.bash.js-build-output
|
2016-12-08 08:08:08 -05:00
|
|
|
.typing_loader.js-build-refresh
|
2015-10-06 11:11:10 -04:00
|
|
|
|
2016-09-08 11:50:36 -04:00
|
|
|
#down-build-trace
|
2015-10-06 11:11:10 -04:00
|
|
|
|
2016-08-24 18:44:58 -04:00
|
|
|
= render "sidebar"
|
2015-10-06 11:11:10 -04:00
|
|
|
|
2016-09-08 11:50:36 -04:00
|
|
|
.js-build-options{ data: javascript_build_options }
|