Add feature flag to schedulable? method

This commit is contained in:
Shinya Maeda 2018-09-25 14:39:32 +09:00 committed by Alessio Caiazza
parent e0cfa9279c
commit f76f6df193

View file

@ -260,6 +260,7 @@ module Ci
end
def schedulable?
Feature.enabled?('ci_enable_scheduled_build') &&
self.when == 'delayed' && options[:start_in].present?
end