diff --git a/app/models/mass_build.rb b/app/models/mass_build.rb index e5cce8fc3..cf2bc0f95 100644 --- a/app/models/mass_build.rb +++ b/app/models/mass_build.rb @@ -47,7 +47,7 @@ class MassBuild < ActiveRecord::Base list = (missed_projects_list || '') << "#{name}\n" update_column :missed_projects_list, list end - sleep 1 + sleep 1 unless new_core end end later :build_all, :queue => :clone_build diff --git a/app/models/project.rb b/app/models/project.rb index fd07b292c..c17604060 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -137,6 +137,8 @@ class Project < ActiveRecord::Base main_rep_id = platform.repositories.find_by_name('main').try(:id) build_reps_ids = [main_rep_id, repository_id].compact.uniq + project_version = repo.commits("#{platform.name}").try(:first).try(:id) ? + "latest_#{platform.name}" : "latest_master" build_list = build_lists.build do |bl| bl.save_to_platform = platform bl.build_for_platform = platform