Rename to process build service
This commit is contained in:
parent
2f03c503fb
commit
27a4c03502
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# 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
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue