From 87ab1ea803560aa53a16a3eb13ea21757605a4c6 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Sat, 29 Dec 2012 21:01:12 +0400 Subject: [PATCH] update condition by status --- lib/tasks/new_core.rake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/tasks/new_core.rake b/lib/tasks/new_core.rake index f1bee2a07..9083efc65 100644 --- a/lib/tasks/new_core.rake +++ b/lib/tasks/new_core.rake @@ -22,7 +22,12 @@ namespace :new_core do bl = BuildList.where(:mass_build_id => 73).first platform_repository_folder = "#{bl.save_to_platform.path}/repository" BuildList.where(:mass_build_id => 73). - where("status != #{BuildServer::BUILD_ERROR}"). + where(:status => [ + BuildServer::SUCCESS, + BuildList::BUILD_PUBLISHED, + BuildList::BUILD_PUBLISH, + BuildList::FAILED_PUBLISH + ]). order(:id). find_in_batches(:batch_size => 1) do | bls |