2016-10-13 15:35:40 -04:00
|
|
|
- builds = @build.pipeline.builds.to_a
|
2016-08-20 12:21:59 -04:00
|
|
|
|
2017-04-17 16:54:26 -04:00
|
|
|
%aside.right-sidebar.right-sidebar-expanded.build-sidebar.js-build-sidebar.js-right-sidebar{ data: { "offset-top" => "101", "spy" => "affix" } }
|
2016-08-17 13:15:36 -04:00
|
|
|
.blocks-container
|
2017-06-12 05:20:19 -04:00
|
|
|
.block
|
|
|
|
%strong
|
|
|
|
= @build.name
|
|
|
|
%a.gutter-toggle.pull-right.visible-xs-block.visible-sm-block.js-sidebar-build-toggle{ href: "#", 'aria-label': 'Toggle Sidebar', role: 'button' }
|
|
|
|
= icon('angle-double-right')
|
|
|
|
|
|
|
|
#js-details-block-vue
|
|
|
|
|
2016-08-17 13:15:36 -04:00
|
|
|
- if can?(current_user, :read_build, @project) && (@build.artifacts? || @build.artifacts_expired?)
|
|
|
|
.block{ class: ("block-first" if !@build.coverage) }
|
|
|
|
.title
|
2017-01-25 10:51:11 -05:00
|
|
|
Job artifacts
|
2016-08-17 13:15:36 -04:00
|
|
|
- if @build.artifacts_expired?
|
|
|
|
%p.build-detail-row
|
|
|
|
The artifacts were removed
|
|
|
|
#{time_ago_with_tooltip(@build.artifacts_expire_at)}
|
2017-01-09 04:58:45 -05:00
|
|
|
- elsif @build.has_expiring_artifacts?
|
2016-08-17 13:15:36 -04:00
|
|
|
%p.build-detail-row
|
|
|
|
The artifacts will be removed in
|
|
|
|
%span.js-artifacts-remove= @build.artifacts_expire_at
|
2016-06-10 09:11:53 -04:00
|
|
|
|
2016-08-17 13:15:36 -04:00
|
|
|
- if @build.artifacts?
|
|
|
|
.btn-group.btn-group-justified{ role: :group }
|
2017-01-09 04:58:45 -05:00
|
|
|
- if @build.has_expiring_artifacts? && can?(current_user, :update_build, @build)
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to keep_project_job_artifacts_path(@project, @build), class: 'btn btn-sm btn-default', method: :post do
|
2016-08-17 13:15:36 -04:00
|
|
|
Keep
|
2016-06-10 08:40:25 -04:00
|
|
|
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to download_project_job_artifacts_path(@project, @build), rel: 'nofollow', download: '', class: 'btn btn-sm btn-default' do
|
2016-08-17 13:15:36 -04:00
|
|
|
Download
|
2016-04-20 05:11:22 -04:00
|
|
|
|
2016-08-17 13:15:36 -04:00
|
|
|
- if @build.artifacts_metadata?
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to browse_project_job_artifacts_path(@project, @build), class: 'btn btn-sm btn-default' do
|
2016-08-17 13:15:36 -04:00
|
|
|
Browse
|
2016-04-20 05:11:22 -04:00
|
|
|
|
2016-08-17 13:15:36 -04:00
|
|
|
- if @build.trigger_request
|
|
|
|
.build-widget
|
|
|
|
%h4.title
|
|
|
|
Trigger
|
2016-04-20 05:11:22 -04:00
|
|
|
|
|
|
|
%p
|
2016-08-17 13:15:36 -04:00
|
|
|
%span.build-light-text Token:
|
|
|
|
#{@build.trigger_request.trigger.short_token}
|
2016-04-20 05:11:22 -04:00
|
|
|
|
2016-08-17 13:15:36 -04:00
|
|
|
- if @build.trigger_request.variables
|
|
|
|
%p
|
2016-09-06 05:49:40 -04:00
|
|
|
%button.btn.group.btn-group-justified.reveal-variables Reveal Variables
|
2016-07-20 03:19:07 -04:00
|
|
|
|
2016-04-20 05:11:22 -04:00
|
|
|
|
2016-08-17 13:15:36 -04:00
|
|
|
- @build.trigger_request.variables.each do |key, value|
|
2016-08-30 11:37:49 -04:00
|
|
|
.hide.js-build
|
2017-06-12 05:20:19 -04:00
|
|
|
.js-build-variable.trigger-build-variable= key
|
|
|
|
.js-build-value.trigger-build-value= value
|
2016-07-07 05:02:57 -04:00
|
|
|
|
2016-04-20 05:11:22 -04:00
|
|
|
.block
|
2017-06-12 05:20:19 -04:00
|
|
|
%p
|
|
|
|
Commit
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to @build.pipeline.short_sha, project_commit_path(@project, @build.pipeline.sha), class: 'commit-sha link-commit'
|
2017-06-12 05:20:19 -04:00
|
|
|
= clipboard_button(text: @build.pipeline.short_sha, title: "Copy commit SHA to clipboard")
|
|
|
|
- if @build.merge_request
|
|
|
|
in
|
|
|
|
= link_to "#{@build.merge_request.to_reference}", merge_request_path(@build.merge_request), class: 'link-commit'
|
|
|
|
|
2016-08-17 13:15:36 -04:00
|
|
|
%p.build-light-text.append-bottom-0
|
|
|
|
#{@build.pipeline.git_commit_title}
|
|
|
|
|
2016-12-05 12:16:34 -05:00
|
|
|
- if @build.pipeline.stages_count > 1
|
2016-08-20 12:21:59 -04:00
|
|
|
.dropdown.build-dropdown
|
2017-06-12 05:20:19 -04:00
|
|
|
.title
|
|
|
|
%span{ class: "ci-status-icon-#{@build.pipeline.status}" }
|
|
|
|
= ci_icon_for_status(@build.pipeline.status)
|
2017-06-13 09:42:10 -04:00
|
|
|
Pipeline
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to "##{@build.pipeline.id}", project_pipeline_path(@project, @build.pipeline), class: 'link-commit'
|
2017-06-12 05:20:19 -04:00
|
|
|
from
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to "#{@build.pipeline.ref}", project_branch_path(@project, @build.pipeline.ref), class: 'link-commit'
|
2016-12-26 05:47:16 -05:00
|
|
|
%button.dropdown-menu-toggle{ type: 'button', 'data-toggle' => 'dropdown' }
|
2016-08-20 12:21:59 -04:00
|
|
|
%span.stage-selection More
|
2016-11-22 16:28:07 -05:00
|
|
|
= icon('chevron-down')
|
2016-08-20 12:21:59 -04:00
|
|
|
%ul.dropdown-menu
|
2017-06-01 05:55:18 -04:00
|
|
|
- @build.pipeline.legacy_stages.each do |stage|
|
2016-08-20 12:21:59 -04:00
|
|
|
%li
|
2016-12-05 12:16:34 -05:00
|
|
|
%a.stage-item= stage.name
|
2016-08-20 12:21:59 -04:00
|
|
|
|
|
|
|
.builds-container
|
2016-10-17 13:15:57 -04:00
|
|
|
- HasStatus::ORDERED_STATUSES.each do |build_status|
|
2016-08-20 12:21:59 -04:00
|
|
|
- builds.select{|build| build.status == build_status}.each do |build|
|
2016-12-26 05:47:16 -05:00
|
|
|
.build-job{ class: sidebar_build_class(build, @build), data: { stage: build.stage } }
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to project_job_path(@project, build) do
|
2016-10-10 04:41:52 -04:00
|
|
|
= icon('arrow-right')
|
2016-12-26 05:47:16 -05:00
|
|
|
%span{ class: "ci-status-icon-#{build.status}" }
|
2016-11-21 18:14:40 -05:00
|
|
|
= ci_icon_for_status(build.status)
|
2016-08-20 12:21:59 -04:00
|
|
|
%span
|
|
|
|
- if build.name
|
|
|
|
= build.name
|
|
|
|
- else
|
|
|
|
= build.id
|
2016-10-13 15:35:40 -04:00
|
|
|
- if build.retried?
|
2017-05-12 10:58:22 -04:00
|
|
|
%i.fa.fa-refresh.has-tooltip{ data: { container: 'body', placement: 'bottom' }, title: 'Job was retried' }
|