diff --git a/app/controllers/api/v1/build_lists_controller.rb b/app/controllers/api/v1/build_lists_controller.rb index d6baaa781..e5765945f 100644 --- a/app/controllers/api/v1/build_lists_controller.rb +++ b/app/controllers/api/v1/build_lists_controller.rb @@ -25,8 +25,7 @@ class Api::V1::BuildListsController < Api::V1::BaseController Arch.where(:id => params[:arches]).each do |arch| Platform.main.where(:id => params[:build_for_platforms]).each do |build_for_platform| build_list = project.build_lists.build(params[:build_list]) - #build_list.commit_hash = project.repo.commits(build_list.project_version.match(/^latest_(.+)/).to_a.last || - # build_list.project_version).first.id if build_list.project_version + build_list.project_version = build_list.commit_hash build_list.build_for_platform = build_for_platform; build_list.arch = arch; build_list.user = current_user build_list.include_repos = build_list.include_repos.select {|ir| build_list.build_for_platform.repository_ids.include? ir.to_i} build_list.priority = current_user.build_priority # User builds more priority than mass rebuild with zero priority