Build only main repo. Refs #207
This commit is contained in:
parent
66fc31e404
commit
86c717dee5
|
@ -159,8 +159,7 @@ class Platform < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def build_all(user)
|
||||
repositories.each do |r|
|
||||
r.projects.find_in_batches(:batch_size => 5) do |group|
|
||||
repositories.find_by_name('main').projects.find_in_batches(:batch_size => 5) do |group|
|
||||
sleep 1
|
||||
group.each do |p|
|
||||
begin
|
||||
|
@ -171,7 +170,6 @@ class Platform < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
with_skip {super} # avoid cascade XML RPC requests
|
||||
|
|
Loading…
Reference in New Issue