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
Kazuhiko Shiozaki
gitlab-ce
Commits
e60647f0
Commit
e60647f0
authored
Sep 28, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop
parent
8f8efcfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/services/ci/register_build_service.rb
app/services/ci/register_build_service.rb
+2
-2
No files found.
app/services/ci/register_build_service.rb
View file @
e60647f0
...
@@ -8,10 +8,10 @@ module Ci
...
@@ -8,10 +8,10 @@ module Ci
builds
=
builds
=
if
current_runner
.
shared?
if
current_runner
.
shared?
# don't run projects which have not enables shared runners
# don't run projects which have not enables shared runners
builds
.
joins
(
commit:
{
gl_project: :gitlab_ci_project
}).
where
(
ci_projects:
{
shared_runners_enabled:
true
})
builds
.
joins
(
commit:
{
gl_project: :gitlab_ci_project
}).
where
(
ci_projects:
{
shared_runners_enabled:
true
})
else
else
# do run projects which are only assigned to this runner
# do run projects which are only assigned to this runner
builds
.
joins
(
:commit
).
where
(
ci_commits:
{
gl_project_id:
current_runner
.
gl_projects_ids
})
builds
.
joins
(
:commit
).
where
(
ci_commits:
{
gl_project_id:
current_runner
.
gl_projects_ids
})
end
end
builds
=
builds
.
order
(
'created_at ASC'
)
builds
=
builds
.
order
(
'created_at ASC'
)
...
...
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