summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-27 18:59:03 +0900
committerShinya Maeda <shinya@gitlab.com>2017-12-06 15:53:59 +0900
commitfba38b51b761cdc5edb964dc90eea051a33aab3e (patch)
tree71817e01fbe9fde44d796a3e19f5bbc6da023e01 /app
parentf5bfedc6122e00ed1182ad7caaeb7636eeebebe1 (diff)
downloadgitlab-ce-fba38b51b761cdc5edb964dc90eea051a33aab3e.tar.gz
Add feature flag
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 9c44e9ef5fd..cf666f86841 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -485,6 +485,8 @@ module Ci
end
def validates_dependencies!
+ return unless Feature.enabled?('ci_validates_dependencies')
+
dependencies.tap do |deps|
# When `dependencies` keyword is given and depended jobs are skipped by `only` keyword
if options[:dependencies]&.any? && deps.empty?