From: donghee yang Date: Mon, 11 Mar 2013 18:06:26 +0000 (+0900) Subject: [Title] Fixed to update job status even it failed with unknown error X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84ccb6b9d8c908fefc850ab2646cd0297d3bd4fa;p=sdk%2Ftools%2Fsdk-build.git [Title] Fixed to update job status even it failed with unknown error --- diff --git a/src/build_server/CommonJob.rb b/src/build_server/CommonJob.rb index c6409e7..a352271 100644 --- a/src/build_server/CommonJob.rb +++ b/src/build_server/CommonJob.rb @@ -145,9 +145,11 @@ class CommonJob if not is_sub_job? then terminate() end rescue BuildServerException => e @log.error e.message + if @status == "WORKING" then @status = "ERROR" end rescue => e @log.error e.message @log.error e.backtrace.inspect + if @status == "WORKING" then @status = "ERROR" end ensure @thread = nil end