fix according to documentation
This commit is contained in:
parent
6fe93380f5
commit
9384f7f143
|
@ -50,7 +50,7 @@ class Platform < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def xml_rpc_create
|
||||
result = BuildServer.add_platform name, build_path(unixname), [], git_path(unixname)
|
||||
result = BuildServer.add_platform name, build_path(unixname), []
|
||||
if result == BuildServer::SUCCESS
|
||||
return true
|
||||
else
|
||||
|
|
|
@ -22,9 +22,9 @@ class BuildServer
|
|||
end
|
||||
|
||||
|
||||
def self.add_platform name, root_folder, repos = [], git_path = nil
|
||||
def self.add_platform name, root_folder, repos = []
|
||||
Rails.logger.info "add_platform start"
|
||||
self.client.call('add_platform', name, git_path, root_folder, repos)
|
||||
self.client.call('add_platform', name, root_folder, repos)
|
||||
Rails.logger.info "add_platform ok"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue