2022-03-02 08:16:31 +05:30
- @force_fluid_layout = true
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'
2021-10-27 15:23:28 +05:30
- add_page_startup_graphql_call('pipelines/get_pipeline_details', { projectPath: @project.full_path, iid: @pipeline.iid })
2021-03-08 18:12:59 +05:30
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
2022-01-26 12:08:38 +05:30
= render_if_exists 'projects/pipelines/cc_validation_required_alert', pipeline: @pipeline
2021-06-08 01:23:25 +05:30
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
2022-05-07 20:08:51 +05:30
- @pipeline.yaml_errors.split("\n").each do |error|
2018-12-13 13:39:08 +05:30
%li= error
2021-12-11 22:18:48 +05:30
- 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-07-07 11:18:12 +05:30
= 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
2022-07-16 23:28:13 +05:30
- if Feature.enabled?(:pipeline_tabs_vue, @project)
2022-08-13 15:12:31 +05:30
#js-pipeline-tabs{ data: js_pipeline_tabs_data(@project, @pipeline, @current_user) }
2022-06-21 17:19:12 +05:30
- else
= render "projects/pipelines/with_tabs", pipeline: @pipeline, stages: @stages, pipeline_has_errors: pipeline_has_errors
2021-11-11 11:23:49 +05:30
.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) } }