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
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) } }
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
= render "projects/pipelines/with_tabs", pipeline: @pipeline, pipeline_has_errors: pipeline_has_errors
2017-09-10 17:25:29 +05:30
2021-02-22 17:27:13 +05:30
.js-pipeline-details-vue{ data: { endpoint: project_pipeline_path(@project, @pipeline, format: :json), pipeline_project_path: @project.full_path, pipeline_iid: @pipeline.iid } }