2017-05-04 12:50:09 -04:00
|
|
|
- failed_builds = @pipeline.statuses.latest.failed
|
|
|
|
|
2016-11-15 14:24:25 -05:00
|
|
|
.tabs-holder
|
2016-11-23 09:44:05 -05:00
|
|
|
%ul.pipelines-tabs.nav-links.no-top.no-bottom
|
2016-11-25 06:23:22 -05:00
|
|
|
%li.js-pipeline-tab-link
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to project_pipeline_path(@project, @pipeline), data: { target: 'div#js-tab-pipeline', action: 'pipelines', toggle: 'tab' }, class: 'pipeline-tab' do
|
2016-11-23 09:44:05 -05:00
|
|
|
Pipeline
|
2016-11-25 06:23:22 -05:00
|
|
|
%li.js-builds-tab-link
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to builds_project_pipeline_path(@project, @pipeline), data: {target: 'div#js-tab-builds', action: 'builds', toggle: 'tab' }, class: 'builds-tab' do
|
2017-01-25 10:51:11 -05:00
|
|
|
Jobs
|
2016-11-24 06:28:48 -05:00
|
|
|
%span.badge.js-builds-counter= pipeline.statuses.count
|
2017-05-04 12:50:09 -04:00
|
|
|
- if failed_builds.present?
|
|
|
|
%li.js-failures-tab-link
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to failures_project_pipeline_path(@project, @pipeline), data: {target: 'div#js-tab-failures', action: 'failures', toggle: 'tab' }, class: 'failures-tab' do
|
2017-05-04 12:50:09 -04:00
|
|
|
Failed Jobs
|
|
|
|
%span.badge.js-failures-counter= failed_builds.count
|
2016-11-23 09:44:05 -05:00
|
|
|
|
2016-11-15 14:24:25 -05:00
|
|
|
.tab-content
|
2016-11-23 09:44:05 -05:00
|
|
|
#js-tab-pipeline.tab-pane
|
2017-05-26 06:56:54 -04:00
|
|
|
#js-pipeline-graph-vue
|
2017-05-06 13:02:06 -04:00
|
|
|
|
2016-11-15 14:24:25 -05:00
|
|
|
#js-tab-builds.tab-pane
|
|
|
|
- if pipeline.yaml_errors.present?
|
|
|
|
.bs-callout.bs-callout-danger
|
|
|
|
%h4 Found errors in your .gitlab-ci.yml:
|
|
|
|
%ul
|
|
|
|
- pipeline.yaml_errors.split(",").each do |error|
|
|
|
|
%li= error
|
|
|
|
You can also test your .gitlab-ci.yml in the #{link_to "Lint", ci_lint_path}
|
|
|
|
|
|
|
|
- if pipeline.project.builds_enabled? && !pipeline.ci_yaml_file
|
|
|
|
.bs-callout.bs-callout-warning
|
|
|
|
\.gitlab-ci.yml not found in this commit
|
|
|
|
|
|
|
|
.table-holder.pipeline-holder
|
|
|
|
%table.table.ci-table.pipeline
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Status
|
2017-01-25 10:51:11 -05:00
|
|
|
%th Job ID
|
2016-11-15 14:24:25 -05:00
|
|
|
%th Name
|
|
|
|
%th
|
2017-03-31 10:30:08 -04:00
|
|
|
%th Coverage
|
2016-11-15 14:24:25 -05:00
|
|
|
%th
|
2017-06-01 05:55:18 -04:00
|
|
|
= render partial: "projects/stage/stage", collection: pipeline.legacy_stages, as: :stage
|
2017-05-04 12:50:09 -04:00
|
|
|
- if failed_builds.present?
|
|
|
|
#js-tab-failures.build-failures.tab-pane
|
2017-05-04 14:30:13 -04:00
|
|
|
- failed_builds.each_with_index do |build, index|
|
2017-05-04 12:50:09 -04:00
|
|
|
.build-state
|
|
|
|
%span.ci-status-icon-failed= custom_icon('icon_status_failed')
|
|
|
|
%span.stage
|
|
|
|
= build.stage.titleize
|
|
|
|
%span.build-name
|
2017-05-16 07:41:15 -04:00
|
|
|
= link_to build.name, pipeline_job_url(pipeline, build)
|
2017-05-04 14:30:13 -04:00
|
|
|
%pre.build-log= build_summary(build, skip: index >= 10)
|