Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
c66fdc632cdf
Commit
e60647f0
authored
Sep 28, 2015
by
Kamil Trzcinski
Browse files
Fix rubocop
parent
dbb6972cec85
Changes
1
Show whitespace changes
Inline
Side-by-side
app/services/ci/register_build_service.rb
View file @
c66fdc63
...
...
@@ -8,10 +8,10 @@ def execute(current_runner)
builds
=
if
current_runner
.
shared?
# 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
# 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
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