From f76f6df19377945609c7e68103077ef04b0702fb Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Tue, 25 Sep 2018 14:39:32 +0900 Subject: [PATCH] Add feature flag to schedulable? method --- app/models/ci/build.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 6c72bce75e3..1209e7ef696 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -260,7 +260,8 @@ module Ci end def schedulable? - self.when == 'delayed' && options[:start_in].present? + Feature.enabled?('ci_enable_scheduled_build') && + self.when == 'delayed' && options[:start_in].present? end def options_scheduled_at