Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
1b624ba4
Commit
1b624ba4
authored
Jul 08, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve name of CI entry validation context hook
parent
d9142f2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
lib/gitlab/ci/config/node/entry.rb
lib/gitlab/ci/config/node/entry.rb
+1
-1
lib/gitlab/ci/config/node/jobs.rb
lib/gitlab/ci/config/node/jobs.rb
+1
-1
lib/gitlab/ci/config/node/stage.rb
lib/gitlab/ci/config/node/stage.rb
+1
-1
No files found.
lib/gitlab/ci/config/node/entry.rb
View file @
1b624ba4
...
...
@@ -34,7 +34,7 @@ module Gitlab
end
def
validate!
@validator
.
validate
(
:
after
)
@validator
.
validate
(
:
processed
)
@entries
.
each_value
(
&
:validate!
)
end
...
...
lib/gitlab/ci/config/node/jobs.rb
View file @
1b624ba4
...
...
@@ -10,7 +10,7 @@ module Gitlab
validations
do
validates
:config
,
type:
Hash
validate
:jobs_presence
,
on: :
after
validate
:jobs_presence
,
on: :
processed
def
jobs_presence
unless
relevant?
...
...
lib/gitlab/ci/config/node/stage.rb
View file @
1b624ba4
...
...
@@ -11,7 +11,7 @@ module Gitlab
validations
do
validates
:config
,
key:
true
validates
:global
,
required_attribute:
true
validate
:known_stage
,
on: :
after
validate
:known_stage
,
on: :
processed
def
known_stage
unless
known?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment