Commit 27a4c035 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Rename to process build service

parent 2f03c503
# frozen_string_literal: true # frozen_string_literal: true
module Ci module Ci
class ProceedBuildService < BaseService class ProcessBuildService < BaseService
def execute(build) def execute(build)
if build.schedulable? if build.schedulable?
build.schedule! build.schedule!
......
...@@ -37,7 +37,7 @@ module Ci ...@@ -37,7 +37,7 @@ module Ci
def process_build(build, current_status) def process_build(build, current_status)
if valid_statuses_for_when(build.when).include?(current_status) if valid_statuses_for_when(build.when).include?(current_status)
Ci::ProceedBuildService.new(project, @user).execute(build) Ci::ProcessBuildService.new(project, @user).execute(build)
true true
else else
build.skip build.skip
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment