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
iv
gitlab-ce
Commits
c3c503d2
Commit
c3c503d2
authored
May 18, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename method that validates runner tag constrains
parent
52ba3a2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/ci/runner.rb
app/models/ci/runner.rb
+2
-2
No files found.
app/models/ci/runner.rb
View file @
c3c503d2
...
@@ -26,7 +26,7 @@ module Ci
...
@@ -26,7 +26,7 @@ module Ci
.
where
(
"ci_runner_projects.gl_project_id = :project_id OR ci_runners.is_shared = true"
,
project_id:
project_id
)
.
where
(
"ci_runner_projects.gl_project_id = :project_id OR ci_runners.is_shared = true"
,
project_id:
project_id
)
end
end
validate
:
verify_tags
_constraints
validate
:
tag
_constraints
acts_as_taggable
acts_as_taggable
...
@@ -105,7 +105,7 @@ module Ci
...
@@ -105,7 +105,7 @@ module Ci
private
private
def
verify_tags
_constraints
def
tag
_constraints
unless
has_tags?
||
run_untagged?
unless
has_tags?
||
run_untagged?
errors
.
add
(
:tags_list
,
errors
.
add
(
:tags_list
,
'can not be empty when runner is not allowed to pick untagged jobs'
)
'can not be empty when runner is not allowed to pick untagged jobs'
)
...
...
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