Build only main repo. Refs #207
This commit is contained in:
parent
66fc31e404
commit
86c717dee5
|
@ -159,15 +159,13 @@ class Platform < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_all(user)
|
def build_all(user)
|
||||||
repositories.each do |r|
|
repositories.find_by_name('main').projects.find_in_batches(:batch_size => 5) do |group|
|
||||||
r.projects.find_in_batches(:batch_size => 5) do |group|
|
sleep 1
|
||||||
sleep 1
|
group.each do |p|
|
||||||
group.each do |p|
|
begin
|
||||||
begin
|
p.build_for(self, user)
|
||||||
p.build_for(self, user)
|
rescue RuntimeError, Exception
|
||||||
rescue RuntimeError, Exception
|
p.delay.build_for(self, user)
|
||||||
p.delay.build_for(self, user)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue