From: dibs Date: Thu, 28 Feb 2013 05:05:08 +0000 (+0900) Subject: [Title] Dibs web - remove reslove command X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00bbbe07ddeb0862c7310329716d0824c32c458c;p=sdk%2Ftools%2Fsdk-build.git [Title] Dibs web - remove reslove command --- diff --git a/dibs-web/app/controllers/projects_controller.rb b/dibs-web/app/controllers/projects_controller.rb index 64796f3..947b5e0 100644 --- a/dibs-web/app/controllers/projects_controller.rb +++ b/dibs-web/app/controllers/projects_controller.rb @@ -48,11 +48,9 @@ class ProjectsController < ApplicationController password_list = [] dist_name = nil - build_type = nil change_group_list.each do |change_item| dist_name = change_item[:distribution] - build_type = change_item[:buildType] project_name = change_item[:projectName] os = change_item[:os] @@ -71,7 +69,7 @@ class ProjectsController < ApplicationController if (project_list.length > 1) or (not (project_list[0].nil? or project_list[0].empty?)) # execute build command begin - Utils.sbi_build_command(build_type, dist_name, project_list, os_list, password_list, get_user_email) + Utils.sbi_build_command(dist_name, project_list, os_list, password_list, get_user_email) rescue => e render :text => e.message, :status => 406 return diff --git a/dibs-web/app/controllers/utils.rb b/dibs-web/app/controllers/utils.rb index 32f332e..92c9826 100644 --- a/dibs-web/app/controllers/utils.rb +++ b/dibs-web/app/controllers/utils.rb @@ -30,7 +30,7 @@ Contributors: BUILD_SERVER_ADDRESS = "127.0.0.1" class Utils < ApplicationController - def Utils.sbi_build_command(sub_cmd, distribution, project_list, os_list, password_list, email) + def Utils.sbi_build_command(distribution, project_list, os_list, password_list, email) dibs_path = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) dibs_config = Server_config.find(:first, :conditions => ["property = \"port\""]) if dibs_config.nil? @@ -51,7 +51,7 @@ class Utils < ApplicationController options = options + " -U #{email} " end - cmd = "#{dibs_path}/build-cli #{sub_cmd} #{options}" + cmd = "#{dibs_path}/build-cli build #{options}" puts "Build command" puts "[[[#{cmd}]]]" diff --git a/dibs-web/public/index.html b/dibs-web/public/index.html index 76ba4e1..fc7f9a5 100644 --- a/dibs-web/public/index.html +++ b/dibs-web/public/index.html @@ -195,7 +195,6 @@ Contributors:

Git project

Build - Resolve
diff --git a/dibs-web/public/javascripts/build.js b/dibs-web/public/javascripts/build.js index bb213a8..f204833 100644 --- a/dibs-web/public/javascripts/build.js +++ b/dibs-web/public/javascripts/build.js @@ -273,7 +273,7 @@ function buildAddBinaryTableRow(binaryProjectList, otherProjectList) { }); } -function buildBuildProject(type) { +function buildBuildProject() { var distName = $("#build-distribution-select option:selected").val(); var buildProjectList = []; @@ -287,7 +287,7 @@ function buildBuildProject(type) { if (node.getAttribute('name') != "all-checkbox") { var prjName = node.id.split(":")[1]; var osName = node.id.split(":")[2]; - var buildData = { "distribution":distName, "buildType":type, "projectName" : prjName, "os" : osName }; + var buildData = { "distribution":distName, "projectName" : prjName, "os" : osName }; buildProjectList.push(buildData); } }