2019-03-15 14:52:08 +00:00
|
|
|
- page_title _('Pipelines')
|
2020-10-07 12:09:12 +00:00
|
|
|
- add_page_specific_style 'page_bundles/pipelines'
|
2020-10-23 09:08:41 +00:00
|
|
|
- add_page_specific_style 'page_bundles/ci_status'
|
2021-04-27 21:10:09 +00:00
|
|
|
- artifacts_endpoint_placeholder = ':pipeline_artifacts_id'
|
2016-04-12 14:16:39 +00:00
|
|
|
|
2019-03-15 15:27:13 +00:00
|
|
|
= render_if_exists "shared/shared_runners_minutes_limit_flash_message"
|
|
|
|
|
2021-06-01 21:10:06 +00:00
|
|
|
- list_url = project_pipelines_path(@project, format: :json, code_quality_walkthrough: params[:code_quality_walkthrough])
|
|
|
|
- add_page_startup_api_call list_url
|
|
|
|
|
|
|
|
#pipelines-list-vue{ data: { endpoint: list_url,
|
2020-05-07 00:11:11 +00:00
|
|
|
project_id: @project.id,
|
2020-05-20 21:09:09 +00:00
|
|
|
params: params.to_json,
|
2021-04-27 21:10:09 +00:00
|
|
|
"artifacts-endpoint" => downloadable_artifacts_project_pipeline_path(@project, artifacts_endpoint_placeholder, format: :json),
|
|
|
|
"artifacts-endpoint-placeholder" => artifacts_endpoint_placeholder,
|
2020-07-06 09:09:20 +00:00
|
|
|
"pipeline-schedule-url" => pipeline_schedules_path(@project),
|
2019-09-03 09:03:35 +00:00
|
|
|
"empty-state-svg-path" => image_path('illustrations/pipelines_empty.svg'),
|
|
|
|
"error-state-svg-path" => image_path('illustrations/pipelines_failed.svg'),
|
|
|
|
"no-pipelines-svg-path" => image_path('illustrations/pipelines_pending.svg'),
|
|
|
|
"can-create-pipeline" => can?(current_user, :create_pipeline, @project).to_s,
|
|
|
|
"new-pipeline-path" => can?(current_user, :create_pipeline, @project) && new_project_pipeline_path(@project),
|
|
|
|
"ci-lint-path" => can?(current_user, :create_pipeline, @project) && project_ci_lint_path(@project),
|
2021-04-07 12:08:53 +00:00
|
|
|
"reset-cache-path" => can?(current_user, :admin_pipeline, @project) && reset_cache_project_settings_ci_cd_path(@project),
|
|
|
|
"has-gitlab-ci" => has_gitlab_ci?(@project).to_s,
|
2021-04-13 06:11:22 +00:00
|
|
|
"add-ci-yml-path" => can?(current_user, :create_pipeline, @project) && @project.present(current_user: current_user).add_ci_yml_path,
|
2021-05-12 12:10:24 +00:00
|
|
|
"suggested-ci-templates" => experiment_suggested_ci_templates.to_json,
|
2021-06-15 00:10:11 +00:00
|
|
|
"code-quality-page-path" => @project.present(current_user: current_user).add_code_quality_ci_yml_path,
|
|
|
|
"ci-runner-settings-path" => project_settings_ci_cd_path(@project, ci_runner_templates: true, anchor: 'js-runners-settings') } }
|