Disable auto_create_container if enabled auto_publish
This commit is contained in:
parent
706df046a8
commit
524d967b74
|
@ -51,7 +51,8 @@ class BuildList < ActiveRecord::Base
|
|||
before_validation :prepare_extra_repositories, :on => :create
|
||||
before_validation :prepare_extra_build_lists, :on => :create
|
||||
before_validation :prepare_extra_params, :on => :create
|
||||
before_validation lambda { self.auto_publish = false if external_nodes.present?; true }, :on => :create
|
||||
before_validation lambda { self.auto_publish = false if external_nodes.present?; true }, :on => :create
|
||||
before_validation lambda { self.auto_create_container = false if auto_publish?; true }, :on => :create
|
||||
|
||||
attr_accessible :include_repos, :auto_publish, :build_for_platform_id, :commit_hash,
|
||||
:arch_id, :project_id, :save_to_repository_id, :update_type,
|
||||
|
|
|
@ -91,10 +91,10 @@ module AbfWorker
|
|||
'BUILD_FOR_PLATFORM' => build_list.build_for_platform.name
|
||||
}.map{ |k, v| "#{k}=#{v}" }.join(' ')
|
||||
|
||||
|
||||
# Low priority
|
||||
Resque.push(
|
||||
'publish_worker_default',
|
||||
'class' => 'AbfWorker::PublishWorkerDefault',
|
||||
'publish_worker',
|
||||
'class' => 'AbfWorker::PublishWorker',
|
||||
'args' => [{
|
||||
:id => build_list.id,
|
||||
:cmd_params => cmd_params,
|
||||
|
|
Loading…
Reference in New Issue