2017-08-17 22:00:37 +05:30
|
|
|
.tabs-holder
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.pipelines-tabs.nav-links.no-top.no-bottom.mobile-separator
|
2017-08-17 22:00:37 +05:30
|
|
|
%li.js-pipeline-tab-link
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to project_pipeline_path(@project, @pipeline), data: { target: '#js-tab-pipeline', action: 'pipelines', toggle: 'tab' }, class: 'pipeline-tab' do
|
|
|
|
= _("Pipeline")
|
2017-08-17 22:00:37 +05:30
|
|
|
%li.js-builds-tab-link
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to builds_project_pipeline_path(@project, @pipeline), data: { target: '#js-tab-builds', action: 'builds', toggle: 'tab' }, class: 'builds-tab' do
|
|
|
|
= _("Jobs")
|
2018-03-17 18:26:18 +05:30
|
|
|
%span.badge.js-builds-counter= pipeline.total_size
|
2018-10-15 14:42:47 +05:30
|
|
|
- if @pipeline.failed_builds.present?
|
2017-08-17 22:00:37 +05:30
|
|
|
%li.js-failures-tab-link
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to failures_project_pipeline_path(@project, @pipeline), data: { target: '#js-tab-failures', action: 'failures', toggle: 'tab' }, class: 'failures-tab' do
|
|
|
|
= _("Failed Jobs")
|
2018-10-15 14:42:47 +05:30
|
|
|
%span.badge.js-failures-counter= @pipeline.failed_builds.count
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.tab-content
|
|
|
|
#js-tab-pipeline.tab-pane
|
2017-09-10 17:25:29 +05:30
|
|
|
#js-pipeline-graph-vue
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
#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
|
2018-10-15 14:42:47 +05:30
|
|
|
You can also test your .gitlab-ci.yml in the #{link_to "Lint", project_ci_lint_path(@project)}
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
- 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
|
|
|
|
%th Job ID
|
|
|
|
%th Name
|
|
|
|
%th
|
|
|
|
%th Coverage
|
|
|
|
%th
|
2017-09-10 17:25:29 +05:30
|
|
|
= render partial: "projects/stage/stage", collection: pipeline.legacy_stages, as: :stage
|
2018-10-15 14:42:47 +05:30
|
|
|
|
|
|
|
- if @pipeline.failed_builds.present?
|
2017-08-17 22:00:37 +05:30
|
|
|
#js-tab-failures.build-failures.tab-pane
|
2018-10-15 14:42:47 +05:30
|
|
|
- @pipeline.failed_builds.each_with_index do |build, index|
|
2017-08-17 22:00:37 +05:30
|
|
|
.build-state
|
|
|
|
%span.ci-status-icon-failed= custom_icon('icon_status_failed')
|
|
|
|
%span.stage
|
|
|
|
= build.stage.titleize
|
|
|
|
%span.build-name
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to build.name, pipeline_job_url(pipeline, build)
|
2017-08-17 22:00:37 +05:30
|
|
|
%pre.build-log= build_summary(build, skip: index >= 10)
|