From e5f1851f9b1b44428b1ac6d49f3457b5429e9203 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Sat, 29 Dec 2012 20:37:36 +0400 Subject: [PATCH] change id of mass build --- lib/tasks/new_core.rake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/new_core.rake b/lib/tasks/new_core.rake index ac3b24bff..864d64122 100644 --- a/lib/tasks/new_core.rake +++ b/lib/tasks/new_core.rake @@ -15,13 +15,13 @@ namespace :new_core do say "[#{Time.zone.now}] done" end - desc 'Publish mass-build 317' - task :publish_mass_build_317 => :environment do + desc 'Publish mass-build 73' + task :publish_mass_build_73 => :environment do 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" - BuildList.where(:mass_build_id => 317). + BuildList.where(:mass_build_id => 73). where("status != #{BuildServer::BUILD_ERROR}"). order(:id). find_in_batches(:batch_size => 1) do | bls |