Commit fc1e2f89 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Run builds from projects with enabled CI

parent c9ac38a0
......@@ -11,7 +11,7 @@ module Ci
builds.joins(:project).where(projects: { builds_enabled: true, shared_runners_enabled: true })
else
# do run projects which are only assigned to this runner
builds.where(project: current_runner.projects)
builds.where(project: current_runner.projects.where(builds_enabled: true))
end
builds = builds.order('created_at ASC')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment