Welcome to mirror list, hosted at ThFree Co, Russian Federation.

jobs_helper.rb « ci « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0344413b849f38acac53f228c952d3cb8d92013e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Ci
  module JobsHelper
    def jobs_data
      {
        "endpoint" => project_job_path(@project, @build, format: :json),
        "project_path" => @project.full_path,
        "deployment_help_url" => help_page_path('user/project/clusters/index.html', anchor: 'troubleshooting'),
        "runner_help_url" => help_page_path('ci/runners/README.html', anchor: 'set-maximum-job-timeout-for-a-runner'),
        "runner_settings_url" => project_runners_path(@build.project, anchor: 'js-runners-settings'),
        "variables_settings_url" => project_variables_path(@build.project, anchor: 'js-cicd-variables-settings'),
        "page_path" => project_job_path(@project, @build),
        "build_status" => @build.status,
        "build_stage" => @build.stage,
        "log_state" => '',
        "build_options" => javascript_build_options
      }
    end
  end
end

Ci::JobsHelper.prepend_if_ee('::EE::Ci::JobsHelper')