2020-04-23 08:09:46 -04:00
|
|
|
# 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
|
2020-10-16 05:09:06 -04:00
|
|
|
get :config_variables
|
2020-04-23 08:09:46 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
member do
|
|
|
|
get :stage
|
|
|
|
post :cancel
|
|
|
|
post :retry
|
|
|
|
get :builds
|
2020-05-05 17:09:42 -04:00
|
|
|
get :dag
|
2020-04-23 08:09:46 -04:00
|
|
|
get :failures
|
|
|
|
get :status
|
|
|
|
get :test_report
|
2021-04-23 08:09:52 -04:00
|
|
|
get :downloadable_artifacts
|
2020-04-23 08:09:46 -04:00
|
|
|
end
|
|
|
|
|
2020-07-13 17:09:24 -04:00
|
|
|
resources :stages, only: [], param: :name, controller: 'pipelines/stages' do
|
|
|
|
post :play_manual
|
2020-07-09 11:08:59 -04:00
|
|
|
end
|
2020-06-19 14:08:39 -04:00
|
|
|
|
2020-07-09 11:08:59 -04:00
|
|
|
resources :tests, only: [:show], param: :suite_name, controller: 'pipelines/tests' do
|
|
|
|
collection do
|
|
|
|
get :summary
|
2020-06-19 14:08:39 -04:00
|
|
|
end
|
2020-04-23 08:09:46 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :pipeline_schedules, except: [:show] do
|
|
|
|
member do
|
|
|
|
post :play
|
|
|
|
post :take_ownership
|
|
|
|
end
|
|
|
|
end
|