diff options
Diffstat (limited to 'app/services/ci/retry_pipeline_service.rb')
-rw-r--r-- | app/services/ci/retry_pipeline_service.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/services/ci/retry_pipeline_service.rb b/app/services/ci/retry_pipeline_service.rb index 85f910d05d7..f6b2c90c6ec 100644 --- a/app/services/ci/retry_pipeline_service.rb +++ b/app/services/ci/retry_pipeline_service.rb @@ -26,9 +26,7 @@ module Ci .new(project: project, current_user: current_user) .close_all(pipeline) - Ci::ProcessPipelineService - .new(pipeline) - .execute + start_pipeline(pipeline) ServiceResponse.success rescue Gitlab::Access::AccessDeniedError => e @@ -52,6 +50,10 @@ module Ci def can_be_retried?(build) can?(current_user, :update_build, build) end + + def start_pipeline(pipeline) + Ci::PipelineCreation::StartPipelineService.new(pipeline).execute + end end end |