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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f8a73268
Commit
f8a73268
authored
Jan 04, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos
parent
a1104f2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/services/ci/register_build_service.rb
app/services/ci/register_build_service.rb
+3
-3
No files found.
app/services/ci/register_build_service.rb
View file @
f8a73268
...
...
@@ -14,7 +14,7 @@ module Ci
builds
=
if
runner
.
shared?
if
shared_runner_build_limits_feature_enabled?
builds_for_share
r
_runner_with_build_minutes_check
builds_for_share
d
_runner_with_build_minutes_check
else
builds_for_shared_runner
end
...
...
@@ -41,7 +41,7 @@ module Ci
private
def
builds_for_share
r
_runner_with_build_minutes_check
def
builds_for_share
d
_runner_with_build_minutes_check
# select projects which have allowed number of shared runner minutes or are public
builds_for_shared_runner
.
where
(
"projects.visibility_level=? OR (
#{
builds_check_limit
.
to_sql
}
)=1"
,
...
...
@@ -90,7 +90,7 @@ module Ci
end
def
shared_runner_build_limits_feature_enabled?
ENV
[
'DISABLE_SHARED_RUNNER_BUILD_MIN
TU
ES_LIMIT'
].
to_s
!=
'true'
ENV
[
'DISABLE_SHARED_RUNNER_BUILD_MIN
UT
ES_LIMIT'
].
to_s
!=
'true'
end
end
end
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