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

pipelines.rb « routes « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cc3c3400526c0151017a7824e58bee76f532f589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# frozen_string_literal: true

resources :pipelines, only: [:index, :new, :create, :show, :destroy] do
  collection do
    resource :pipelines_settings, path: 'settings', only: [:show, :update]
    get :charts
    scope '(*ref)', constraints: { ref: Gitlab::PathRegex.git_reference_regex } do
      get :latest, action: :show, defaults: { latest: true }
    end
  end

  member do
    get :stage
    get :stage_ajax
    post :cancel
    post :retry
    get :builds
    get :dag
    get :failures
    get :status
    get :test_report
    get :test_reports_count
  end

  member do
    resources :stages, only: [], param: :name do
      post :play_manual
    end
  end
end

resources :pipeline_schedules, except: [:show] do
  member do
    post :play
    post :take_ownership
  end
end