[Title] Fixed a but that remote job cancel does not work
authordonghee yang <donghee.yang@samsung.com>
Tue, 16 Oct 2012 10:48:40 +0000 (19:48 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Tue, 16 Oct 2012 10:48:40 +0000 (19:48 +0900)
src/build_server/RemoteBuilder.rb

index e895c9adb66b2844c7da8183c466fae70cb86736..02e04c2406be7d888e1d5112930214c92e09ef90 100644 (file)
@@ -183,10 +183,16 @@ class RemoteBuilder
                pkg_list = local_pkg_names.join(",")
                rev = is_rev_build ? "YES":"NO"
                msg = "BUILD|GIT|#{git_repos}||#{os}|NO|#{no_reverse}|YES|#{rev}|#{commit}|#{pkg_list}|#{dock}|#{dist_name}"
+               r_job_number = Regexp.new('Added new job "([^"]*)"')
         if client.send( msg ) then 
             result = client.read_lines do |l|
                 # write log first
                 @log.output( l.strip, Log::LV_USER)
+
+                               # set remote job id
+                               if @remote_id.nil? and l =~ r_job_number then
+                                       @remote_id = $1
+                               end
  
                                # check build result
                 if l.include? "Job is stopped by ERROR" or