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 |