2019-03-15 14:52:08 +00:00
- add_to_breadcrumbs _('Pipelines'), project_pipelines_path(@project)
2017-08-17 09:42:04 +00:00
- breadcrumb_title "##{@pipeline.id}"
2019-03-15 14:52:08 +00:00
- page_title _('Pipeline')
2020-08-12 15:10:02 +00:00
- pipeline_has_errors = @pipeline.builds.empty? && @pipeline.yaml_errors.present?
2020-10-05 21:08:47 +00:00
- add_page_specific_style 'page_bundles/pipeline'
2020-10-09 03:08:25 +00:00
- add_page_specific_style 'page_bundles/reports'
2020-10-23 09:08:41 +00:00
- add_page_specific_style 'page_bundles/ci_status'
2021-08-17 18:10:35 +00:00
- add_page_startup_graphql_call('pipelines/get_pipeline_details', { projectPath: @project.full_path, iid: @pipeline.iid })
2021-01-19 12:10:46 +00:00
2019-09-03 09:03:35 +00:00
.js-pipeline-container{ data: { controller_action: "#{controller.action_name}" } }
2020-11-10 00:08:52 +00:00
#js-pipeline-header-vue.pipeline-header-container{ data: { full_path: @project.full_path, pipeline_iid: @pipeline.iid, pipeline_id: @pipeline.id, pipelines_path: project_pipelines_path(@project) } }
2021-05-12 06:10:21 +00:00
2021-06-02 15:09:59 +00:00
- if Gitlab.com? && show_cc_validation_alert?(@pipeline)
2021-05-12 06:10:21 +00:00
#js-cc-validation-required-alert
2018-08-02 12:12:07 +00:00
- if @pipeline.commit.present?
= render "projects/pipelines/info", commit: @pipeline.commit
2016-04-13 15:05:17 +00:00
2020-08-12 15:10:02 +00:00
- if pipeline_has_errors
2018-10-29 14:58:16 +00:00
.bs-callout.bs-callout-danger
2019-03-15 14:52:08 +00:00
%h4= _('Found errors in your %{gitlab_ci_yml}:') % { gitlab_ci_yml: '.gitlab-ci.yml' }
2018-10-29 14:58:16 +00:00
%ul
- @pipeline.yaml_errors.split(",").each do |error|
%li= error
2021-10-20 15:12:43 +00:00
- lint_link_url = project_ci_pipeline_editor_path(@project, tab: "LINT_TAB")
- lint_link_start = '<a href="%{url}" class="gl-text-blue-500!">'.html_safe % { url: lint_link_url }
2019-03-15 14:52:08 +00:00
= s_('You can also test your %{gitlab_ci_yml} in %{lint_link_start}CI Lint%{lint_link_end}').html_safe % { gitlab_ci_yml: '.gitlab-ci.yml', lint_link_start: lint_link_start, lint_link_end: '</a>'.html_safe }
2020-08-12 15:10:02 +00:00
2021-03-31 15:10:27 +00:00
= render "projects/pipelines/with_tabs", pipeline: @pipeline, stages: @stages, pipeline_has_errors: pipeline_has_errors
2017-05-26 10:56:54 +00:00
2021-08-24 15:10:36 +00:00
.js-pipeline-details-vue{ data: { metrics_path: namespace_project_ci_prometheus_metrics_histograms_path(namespace_id: @project.namespace, project_id: @project, format: :json), pipeline_project_path: @project.full_path, pipeline_iid: @pipeline.iid, graphql_resource_etag: graphql_etag_pipeline_path(@pipeline) } }