2019-07-07 11:18:12 +05:30
- add_to_breadcrumbs _('Pipelines'), project_pipelines_path(@project)
2018-03-17 18:26:18 +05:30
- breadcrumb_title "##{@pipeline.id}"
2019-07-07 11:18:12 +05:30
- page_title _('Pipeline')
2020-10-24 23:57:45 +05:30
- pipeline_has_errors = @pipeline.builds.empty? && @pipeline.yaml_errors.present?
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/pipeline'
- add_page_specific_style 'page_bundles/reports'
2021-01-29 00:20:46 +05:30
- add_page_specific_style 'page_bundles/ci_status'
2016-06-02 11:05:42 +05:30
2021-03-11 19:13:27 +05:30
- if Feature.enabled?(:graphql_pipeline_details, @project, default_enabled: :yaml) || Feature.enabled?(:graphql_pipeline_details_users, @current_user, default_enabled: :yaml)
2021-03-08 18:12:59 +05:30
- add_page_startup_graphql_call('pipelines/get_pipeline_details', { projectPath: @project.full_path, iid: @pipeline.iid })
2019-12-04 20:38:33 +05:30
.js-pipeline-container{ data: { controller_action: "#{controller.action_name}" } }
2021-01-29 00:20:46 +05:30
#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-06-08 01:23:25 +05:30
2021-09-04 01:27:46 +05:30
- if Gitlab.com? && show_cc_validation_alert?(@pipeline)
2021-06-08 01:23:25 +05:30
#js-cc-validation-required-alert
2018-11-18 11:00:15 +05:30
- if @pipeline.commit.present?
= render "projects/pipelines/info", commit: @pipeline.commit
2016-06-02 11:05:42 +05:30
2020-10-24 23:57:45 +05:30
- if pipeline_has_errors
2018-12-13 13:39:08 +05:30
.bs-callout.bs-callout-danger
2019-07-07 11:18:12 +05:30
%h4= _('Found errors in your %{gitlab_ci_yml}:') % { gitlab_ci_yml: '.gitlab-ci.yml' }
2018-12-13 13:39:08 +05:30
%ul
- @pipeline.yaml_errors.split(",").each do |error|
%li= error
2019-07-07 11:18:12 +05:30
- lint_link_url = project_ci_lint_path(@project)
- lint_link_start = '<a href="%{url}">'.html_safe % { url: lint_link_url }
= 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-10-24 23:57:45 +05:30
2021-04-29 21:17:54 +05:30
= render "projects/pipelines/with_tabs", pipeline: @pipeline, stages: @stages, pipeline_has_errors: pipeline_has_errors
2017-09-10 17:25:29 +05:30
2021-04-17 20:07:23 +05:30
.js-pipeline-details-vue{ data: { endpoint: project_pipeline_path(@project, @pipeline, format: :json), 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) } }