Redo build_list publish to check returned status. Refs #77
This commit is contained in:
parent
71da0a51d8
commit
2ac4391edf
|
@ -105,11 +105,10 @@ class BuildList < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def publish
|
||||
return false unless can_publish?
|
||||
has_published = BuildServer.publish_container bs_id
|
||||
update_attribute(:status, BUILD_PUBLISHED) if has_published == 0
|
||||
|
||||
BuildServer.publish_container bs_id
|
||||
self.update_attribute(:status, BUILD_PUBLISHED)
|
||||
#self.destroy # self.delete
|
||||
return has_published == 0
|
||||
end
|
||||
|
||||
def can_publish?
|
||||
|
|
Loading…
Reference in New Issue