dedebug + ui fix
This commit is contained in:
parent
57493087db
commit
4f29a63296
|
@ -73,7 +73,9 @@ class BuildListsController < ApplicationController
|
|||
@build_list.name = params[:name]
|
||||
@build_list.additional_repos = ActiveSupport::JSON.decode(params[:additional_repos])
|
||||
@build_list.set_items(ActiveSupport::JSON.decode(params[:items]))
|
||||
params[:is_circular]
|
||||
@build_list.notified_at = Time.now
|
||||
@build_list.is_circle = (params[:is_circular] != "0")
|
||||
@build_list.bs_id = params[:id]
|
||||
params[:arch]
|
||||
@build_list.save
|
||||
|
||||
|
|
|
@ -89,9 +89,7 @@ class BuildList < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def place_build
|
||||
RAILS_DEFAULT_LOGGER.fatal "place build"
|
||||
self.status = BuildServer.add_build_list project.name, branch_name, project.repository.platform.name, arch.name
|
||||
RAILS_DEFAULT_LOGGER.fatal "status = #{self.status}"
|
||||
self.status = BUILD_PENDING if self.status == 0
|
||||
save
|
||||
end
|
||||
|
|
|
@ -5,6 +5,7 @@ class BuildList::Item < ActiveRecord::Base
|
|||
|
||||
STATUSES = [BuildServer::SUCCESS, BuildServer::DEPENDENCIES_FAIL, BuildServer::SRPM_NOT_FOUND, BuildServer::MOCK_NOT_FOUND]
|
||||
HUMAN_STATUSES = {
|
||||
nil => :unknown,
|
||||
BuildServer::MOCK_NOT_FOUND => :mock_not_found,
|
||||
BuildServer::DEPENDENCIES_FAIL => :dependencies_fail,
|
||||
BuildServer::SRPM_NOT_FOUND => :srpm_not_found,
|
||||
|
|
|
@ -115,6 +115,7 @@ ru:
|
|||
dependencies_fail: dependencies fail
|
||||
srpm_not_found: srpm не найден
|
||||
success: собран
|
||||
unknown: ожидает сборки
|
||||
statuses:
|
||||
build_error: ошибка сборки
|
||||
mock_not_found: mock не найден
|
||||
|
|
Loading…
Reference in New Issue