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
99f1385e
Commit
99f1385e
authored
Sep 16, 2016
by
Grzegorz Bizon
Committed by
Kamil Trzcinski
Sep 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore validation of CI job environment name
parent
2ad7753d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lib/gitlab/ci/config/node/environment.rb
lib/gitlab/ci/config/node/environment.rb
+9
-0
No files found.
lib/gitlab/ci/config/node/environment.rb
View file @
99f1385e
...
@@ -18,6 +18,15 @@ module Gitlab
...
@@ -18,6 +18,15 @@ module Gitlab
end
end
validates
:name
,
presence:
true
validates
:name
,
presence:
true
validates
:name
,
type:
{
with:
String
,
message:
Gitlab
::
Regex
.
environment_name_regex_message
}
validates
:name
,
format:
{
with:
Gitlab
::
Regex
.
environment_name_regex
,
message:
Gitlab
::
Regex
.
environment_name_regex_message
}
with_options
if: :hash?
do
with_options
if: :hash?
do
validates
:config
,
allowed_keys:
ALLOWED_KEYS
validates
:config
,
allowed_keys:
ALLOWED_KEYS
...
...
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