diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-12 12:56:21 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-12 12:56:21 +0200 |
commit | 8c9c3eda7a305c43d7cf3d50b868292d0b612b5b (patch) | |
tree | caca9c2aa5eddb8b20e81b68654e3db259b8c862 /lib | |
parent | 80587064eb798f5bf2b18dbb8e65e5a55d1db085 (diff) | |
download | gitlab-ce-8c9c3eda7a305c43d7cf3d50b868292d0b612b5b.tar.gz |
Prevalidate CI entries recursively on processed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/config/node/entry.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/ci/config/node/entry.rb b/lib/gitlab/ci/config/node/entry.rb index 1940c39087b..02e4f7693da 100644 --- a/lib/gitlab/ci/config/node/entry.rb +++ b/lib/gitlab/ci/config/node/entry.rb @@ -31,10 +31,9 @@ module Gitlab end def validate! - if @validator.valid?(:new) - @validator.validate(:processed) - end + return unless valid? + @validator.validate(:processed) @entries.each_value(&:validate!) end |