change id of mass build

This commit is contained in:
Vokhmin Alexey V 2012-12-29 20:37:36 +04:00
parent 8b8c15bc49
commit e5f1851f9b
1 changed files with 4 additions and 4 deletions

View File

@ -15,13 +15,13 @@ namespace :new_core do
say "[#{Time.zone.now}] done" say "[#{Time.zone.now}] done"
end end
desc 'Publish mass-build 317' desc 'Publish mass-build 73'
task :publish_mass_build_317 => :environment do task :publish_mass_build_73 => :environment do
say "[#{Time.zone.now}] Starting to publish mass-build 317..." say "[#{Time.zone.now}] Starting to publish mass-build 317..."
bl = BuildList.where(:mass_build_id => 317).first bl = BuildList.where(:mass_build_id => 73).first
repository_path = "#{bl.save_to_platform.path}/repository" repository_path = "#{bl.save_to_platform.path}/repository"
BuildList.where(:mass_build_id => 317). BuildList.where(:mass_build_id => 73).
where("status != #{BuildServer::BUILD_ERROR}"). where("status != #{BuildServer::BUILD_ERROR}").
order(:id). order(:id).
find_in_batches(:batch_size => 1) do | bls | find_in_batches(:batch_size => 1) do | bls |