Commit 54bb24ee authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza
Browse files

Rename to process build service

parent 6dcaacf9c26c
# 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 @@ def process_stage(index) ...@@ -37,7 +37,7 @@ def process_stage(index)
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), @user).execute(build), @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