2017-04-17 20:54:26 +00:00
|
|
|
%aside.right-sidebar.right-sidebar-expanded.build-sidebar.js-build-sidebar.js-right-sidebar{ data: { "offset-top" => "101", "spy" => "affix" } }
|
2017-08-02 23:13:47 +00:00
|
|
|
.sidebar-container
|
|
|
|
.blocks-container
|
2018-08-10 14:06:44 +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 } }
|
2017-06-12 09:20:19 +00:00
|
|
|
|
2017-08-02 23:13:47 +00:00
|
|
|
- if can?(current_user, :read_build, @project) && (@build.artifacts? || @build.artifacts_expired?)
|
|
|
|
.block
|
|
|
|
.title
|
|
|
|
Job artifacts
|
|
|
|
- if @build.artifacts_expired?
|
|
|
|
%p.build-detail-row
|
|
|
|
The artifacts were removed
|
|
|
|
#{time_ago_with_tooltip(@build.artifacts_expire_at)}
|
|
|
|
- elsif @build.has_expiring_artifacts?
|
|
|
|
%p.build-detail-row
|
2018-07-05 13:39:29 +00:00
|
|
|
The artifacts will be removed
|
|
|
|
#{time_ago_with_tooltip(@build.artifacts_expire_at)}
|
2016-06-10 13:11:53 +00:00
|
|
|
|
2017-08-02 23:13:47 +00:00
|
|
|
- if @build.artifacts?
|
2018-05-29 15:18:45 +00:00
|
|
|
.btn-group.d-flex{ role: :group }
|
2017-08-02 23:13:47 +00:00
|
|
|
- if @build.has_expiring_artifacts? && can?(current_user, :update_build, @build)
|
2018-05-10 19:22:56 +00:00
|
|
|
= link_to keep_project_job_artifacts_path(@project, @build), class: 'btn btn-sm btn-default', method: :post do
|
2017-08-02 23:13:47 +00:00
|
|
|
Keep
|
2016-06-10 12:40:25 +00:00
|
|
|
|
2018-05-10 19:22:56 +00:00
|
|
|
= link_to download_project_job_artifacts_path(@project, @build), rel: 'nofollow', download: '', class: 'btn btn-sm btn-default' do
|
2017-08-02 23:13:47 +00:00
|
|
|
Download
|
2016-04-20 09:11:22 +00:00
|
|
|
|
2018-03-09 15:31:31 +00:00
|
|
|
- if @build.browsable_artifacts?
|
2018-05-10 19:22:56 +00:00
|
|
|
= link_to browse_project_job_artifacts_path(@project, @build), class: 'btn btn-sm btn-default' do
|
2018-03-12 12:54:02 +00:00
|
|
|
Browse
|
2016-04-20 09:11:22 +00:00
|
|
|
|
2017-08-02 23:13:47 +00:00
|
|
|
- if @build.trigger_request
|
|
|
|
.build-widget.block
|
|
|
|
%h4.title
|
|
|
|
Trigger
|
2016-04-20 09:11:22 +00:00
|
|
|
|
2017-11-24 09:20:34 +00:00
|
|
|
- if @build.trigger_request&.trigger&.short_token
|
|
|
|
%p
|
|
|
|
%span.build-light-text Token:
|
|
|
|
#{@build.trigger_request.trigger.short_token}
|
2016-07-20 07:19:07 +00:00
|
|
|
|
2017-09-04 08:17:36 +00:00
|
|
|
- if @build.trigger_variables.any?
|
2017-08-02 23:13:47 +00:00
|
|
|
%p
|
2018-05-29 15:18:45 +00:00
|
|
|
%button.btn.group.js-reveal-variables Reveal Variables
|
2016-04-20 09:11:22 +00:00
|
|
|
|
2018-04-24 19:11:23 +00:00
|
|
|
%dl.js-build-variables.trigger-build-variables.hide
|
2017-09-04 08:17:36 +00:00
|
|
|
- @build.trigger_variables.each do |trigger_variable|
|
|
|
|
%dt.js-build-variable.trigger-build-variable= trigger_variable[:key]
|
|
|
|
%dd.js-build-value.trigger-build-value= trigger_variable[:value]
|
2016-07-07 09:02:57 +00:00
|
|
|
|
2017-08-02 23:13:47 +00:00
|
|
|
%div{ class: (@build.pipeline.stages_count > 1 ? "block" : "block-last") }
|
|
|
|
%p
|
|
|
|
Commit
|
|
|
|
= link_to @build.pipeline.short_sha, project_commit_path(@project, @build.pipeline.sha), class: 'commit-sha link-commit'
|
|
|
|
= 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'
|
2017-06-12 09:20:19 +00:00
|
|
|
|
2017-08-02 23:13:47 +00:00
|
|
|
%p.build-light-text.append-bottom-0
|
|
|
|
#{@build.pipeline.git_commit_title}
|
2016-08-17 17:15:36 +00:00
|
|
|
|
2017-08-02 23:13:47 +00:00
|
|
|
- if @build.pipeline.stages_count > 1
|
|
|
|
.block-last.dropdown.build-dropdown
|
|
|
|
%div
|
|
|
|
%span{ class: "ci-status-icon-#{@build.pipeline.status}" }
|
|
|
|
= ci_icon_for_status(@build.pipeline.status)
|
|
|
|
Pipeline
|
|
|
|
= link_to "##{@build.pipeline.id}", project_pipeline_path(@project, @build.pipeline), class: 'link-commit'
|
|
|
|
from
|
2017-08-10 14:13:25 +00:00
|
|
|
= link_to "#{@build.pipeline.ref}", project_ref_path(@project, @build.pipeline.ref), class: 'link-commit ref-name'
|
2017-08-02 23:13:47 +00:00
|
|
|
%button.dropdown-menu-toggle{ type: 'button', 'data-toggle' => 'dropdown' }
|
|
|
|
%span.stage-selection More
|
|
|
|
= icon('chevron-down')
|
|
|
|
%ul.dropdown-menu
|
|
|
|
- @build.pipeline.legacy_stages.each do |stage|
|
|
|
|
%li
|
|
|
|
%a.stage-item= stage.name
|
2016-08-20 16:21:59 +00:00
|
|
|
|
2017-08-02 23:13:47 +00:00
|
|
|
.builds-container
|
|
|
|
- HasStatus::ORDERED_STATUSES.each do |build_status|
|
|
|
|
- builds.select{|build| build.status == build_status}.each do |build|
|
|
|
|
.build-job{ class: sidebar_build_class(build, @build), data: { stage: build.stage } }
|
2018-07-27 09:48:20 +00:00
|
|
|
- tooltip = sanitize(build.tooltip_message.dup)
|
2018-08-09 11:05:13 +00:00
|
|
|
= link_to(project_job_path(@project, build), data: { toggle: 'tooltip', title: tooltip, container: 'body' }) do
|
2017-09-28 17:05:01 +00:00
|
|
|
= sprite_icon('arrow-right', size:16, css_class: 'icon-arrow-right')
|
2017-08-02 23:13:47 +00:00
|
|
|
%span{ class: "ci-status-icon-#{build.status}" }
|
|
|
|
= ci_icon_for_status(build.status)
|
|
|
|
%span
|
|
|
|
- if build.name
|
|
|
|
= build.name
|
|
|
|
- else
|
|
|
|
= build.id
|
|
|
|
- if build.retried?
|
2018-04-05 21:04:42 +00:00
|
|
|
= sprite_icon('retry', size:16, css_class: 'icon-retry')
|