summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-12-11 18:03:48 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-12-11 18:03:48 +0100
commitfc1e2f89864a74d78d67ca27d99bd43407c703df (patch)
tree3b9ceae3c35acc29714956944307de58d1683eee
parentc9ac38a074423b30b5627553bfdbf0ba15737d8e (diff)
downloadgitlab-ce-fc1e2f89864a74d78d67ca27d99bd43407c703df.tar.gz
Run builds from projects with enabled CIci-project-migrate
-rw-r--r--app/services/ci/register_build_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/register_build_service.rb b/app/services/ci/register_build_service.rb
index eba602da992..4ff268a6f06 100644
--- a/app/services/ci/register_build_service.rb
+++ b/app/services/ci/register_build_service.rb
@@ -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')