Commit 1b624ba4 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve name of CI entry validation context hook

parent d9142f2c
...@@ -34,7 +34,7 @@ module Gitlab ...@@ -34,7 +34,7 @@ module Gitlab
end end
def validate! def validate!
@validator.validate(:after) @validator.validate(:processed)
@entries.each_value(&:validate!) @entries.each_value(&:validate!)
end end
......
...@@ -10,7 +10,7 @@ module Gitlab ...@@ -10,7 +10,7 @@ module Gitlab
validations do validations do
validates :config, type: Hash validates :config, type: Hash
validate :jobs_presence, on: :after validate :jobs_presence, on: :processed
def jobs_presence def jobs_presence
unless relevant? unless relevant?
......
...@@ -11,7 +11,7 @@ module Gitlab ...@@ -11,7 +11,7 @@ module Gitlab
validations do validations do
validates :config, key: true validates :config, key: true
validates :global, required_attribute: true validates :global, required_attribute: true
validate :known_stage, on: :after validate :known_stage, on: :processed
def known_stage def known_stage
unless known? unless known?
......
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